public class JerseyResponse extends Object implements OpenStackResponse
| Constructor and Description |
|---|
JerseyResponse(com.sun.jersey.api.client.ClientResponse response) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getEntity(Class<T> returnType) |
<T> T |
getErrorEntity(Class<T> returnType) |
InputStream |
getInputStream() |
int |
getStatus() |
String |
header(String name) |
Map<String,String> |
headers() |
public JerseyResponse(com.sun.jersey.api.client.ClientResponse response)
public <T> T getEntity(Class<T> returnType) throws OpenStackResponseException
getEntity in interface OpenStackResponseOpenStackResponseExceptionOpenStackResponse.getEntity(java.lang.Class)public <T> T getErrorEntity(Class<T> returnType)
getErrorEntity in interface OpenStackResponsepublic InputStream getInputStream()
getInputStream in interface OpenStackResponsepublic String header(String name)
header in interface OpenStackResponsepublic Map<String,String> headers()
headers in interface OpenStackResponsepublic int getStatus()
getStatus in interface OpenStackResponseCopyright © 2012–2019. All rights reserved.