public interface HttpResponse extends Closeable
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType()
The current content-type within the response
|
<T> T |
getEntity(Class<T> returnType)
Gets the entity and Maps any errors which will result in a ResponseException
|
<T> T |
getEntity(Class<T> returnType,
ExecutionOptions<T> options)
Gets the entity and Maps any errors which will result in a ResponseException
|
InputStream |
getInputStream() |
int |
getStatus()
Gets the status from the previous Request
|
String |
getStatusMessage()
The status message which is associated with the current
getStatus() |
String |
header(String name)
Returns a Header value from the specified name key
|
Map<String,String> |
headers() |
<T> T |
readEntity(Class<T> typeToReadAs)
Reads the entity as is into the specified type without any exception mapping
|
<T> T getEntity(Class<T> returnType)
T - the generic typereturnType - the return type<T> T getEntity(Class<T> returnType, ExecutionOptions<T> options)
T - the generic typereturnType - the return typeoptions - execution options<T> T readEntity(Class<T> typeToReadAs)
typeToReadAs - the type to read the desired entity in asint getStatus()
String getContentType()
String getStatusMessage()
getStatus()InputStream getInputStream()
String header(String name)
name - the name of the header to query forCopyright © 2017. All rights reserved.