public class ImagesResource.Show extends OpenStackRequest<Image>
| Constructor and Description |
|---|
Show(String id)
This method constructs the request to get the detail for a specific image.
|
| Modifier and Type | Method and Description |
|---|---|
Image |
execute()
We have to override the parsing of the returned entity here because it comes back to us as an unwrapped json
object (i.e., there is no root class name).
|
buildPath, endpoint, endpoint, entity, entity, getOpenStackClient, header, headers, json, method, method, path, path, queryParam, queryParams, queryString, request, returnType, returnType, toStringpublic Show(String id)
This method was using HEAD in the past and has been changed to use GET. In order to use GET, the mapping of the returned entity has to be specially handled (it is an unwrapped json object).
id - The id of the image to showpublic Image execute() throws OpenStackConnectException, OpenStackResponseException
execute in class OpenStackRequest<Image>OpenStackConnectExceptionOpenStackResponseExceptionOpenStackRequest.execute()Copyright © 2012–2019. All rights reserved.