Package com.sodius.oslc.client.requests
Class GetServiceProviderCatalog
java.lang.Object
com.sodius.oslc.client.requests.AbstractResourceRequest<ResourceResponse<ServiceProviderCatalog>>
com.sodius.oslc.client.requests.GetResource<ServiceProviderCatalog>
com.sodius.oslc.client.requests.GetServiceProviderCatalog
- All Implemented Interfaces:
ResourceRequest<ResourceResponse<ServiceProviderCatalog>>,Callable<ResourceResponse<ServiceProviderCatalog>>
Executes a GET request to read a
ServiceProviderCatalog instance.
The catalog URI is usually to extract form a RootServices and depend on the desired OSLC domain.
- Since:
- 1.1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ResourceResponse<ServiceProviderCatalog> createResponse(OslcResource resource, ClientResponse response) Extracts aResourceResponseinstance from the obtained HTTP response.Methods inherited from class com.sodius.oslc.client.requests.GetResource
call, getMethods inherited from class com.sodius.oslc.client.requests.AbstractResourceRequest
call, createErrorResponse, createResourceResponse, getClient, getUri
-
Constructor Details
-
GetServiceProviderCatalog
-
-
Method Details
-
createResponse
protected ResourceResponse<ServiceProviderCatalog> createResponse(OslcResource resource, ClientResponse response) Description copied from class:GetResourceExtracts aResourceResponseinstance from the obtained HTTP response. The response contains the response headers, from which theETagheader can be extracted in case this request is to follow by aPUT.- Overrides:
createResponsein classGetResource<ServiceProviderCatalog>- Parameters:
resource- the resource on which a request is executed.response- the response obtained.- Returns:
- the extraction of the response content into the expected format.
-