Package com.sodius.oslc.client.requests
Interface ResourceResponse<T>
-
- Type Parameters:
T
- the type of response to extract from the request execution.
public interface ResourceResponse<T>
A response obtained from aResourceRequest
execution.Due to the contract of the
ResourceRequest
interface, this response is instantiated only when the HTTP response status is20x
.- Since:
- 1.1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ResourceResponse.Factory
A factory to create ResourceResponse instances.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getEntity()
Returns the entity extracted from the response.String
getETag()
Returns theETag
header from the response, if any.MultivaluedMap<String,String>
getHeaders()
Returns the headers of the response.
-
-
-
Method Detail
-
getEntity
T getEntity()
Returns the entity extracted from the response.- Returns:
- the entity extracted from the response.
-
getETag
String getETag()
Returns theETag
header from the response, if any.- Returns:
- the
ETag
header from the response, if any.
-
getHeaders
MultivaluedMap<String,String> getHeaders()
Returns the headers of the response.- Returns:
- the headers of the response.
-
-