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 aResourceRequestexecution.Due to the contract of the
ResourceRequestinterface, 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 classResourceResponse.FactoryA factory to create ResourceResponse instances.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TgetEntity()Returns the entity extracted from the response.StringgetETag()Returns theETagheader 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 theETagheader from the response, if any.- Returns:
- the
ETagheader from the response, if any.
-
getHeaders
MultivaluedMap<String,String> getHeaders()
Returns the headers of the response.- Returns:
- the headers of the response.
-
-