T
- the type of response to extract from the request execution.public interface ResourceResponse<T>
ResourceRequest
execution.
Due to the contract of the ResourceRequest
interface, this response is instantiated only when the HTTP response status is
20x
.
Modifier and Type | Interface and Description |
---|---|
static class |
ResourceResponse.Factory
A factory to create ResourceResponse instances.
|
Modifier and Type | Method and Description |
---|---|
T |
getEntity()
Returns the entity extracted from the response.
|
String |
getETag()
Returns the
ETag header from the response, if any. |
MultivaluedMap<String,String> |
getHeaders()
Returns the headers of the response.
|
T getEntity()
String getETag()
ETag
header from the response, if any.ETag
header from the response, if any.MultivaluedMap<String,String> getHeaders()