Package com.sodius.oslc.client.requests
Class GetServiceProviderCatalog
- java.lang.Object
-
- com.sodius.oslc.client.requests.AbstractResourceRequest<ResourceResponse<T>>
-
- com.sodius.oslc.client.requests.GetResource<ServiceProviderCatalog>
-
- com.sodius.oslc.client.requests.GetServiceProviderCatalog
-
- All Implemented Interfaces:
ResourceRequest<ResourceResponse<ServiceProviderCatalog>>
,Callable<ResourceResponse<ServiceProviderCatalog>>
public class GetServiceProviderCatalog extends GetResource<ServiceProviderCatalog>
Executes a GET request to read aServiceProviderCatalog
instance.The catalog URI is usually to extract form a
RootServices
and depend on the desired OSLC domain.- Since:
- 1.1.0
- See Also:
GetRootServices
-
-
Constructor Summary
Constructors Constructor Description GetServiceProviderCatalog(OslcClient client, URI uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ResourceResponse<ServiceProviderCatalog>
createResponse(OslcResource resource, ClientResponse response)
Extracts aResourceResponse
instance from the obtained HTTP response.-
Methods inherited from class com.sodius.oslc.client.requests.GetResource
call, get
-
Methods inherited from class com.sodius.oslc.client.requests.AbstractResourceRequest
call, createErrorResponse, createResourceResponse, getClient, getUri
-
-
-
-
Constructor Detail
-
GetServiceProviderCatalog
public GetServiceProviderCatalog(OslcClient client, URI uri)
-
-
Method Detail
-
createResponse
protected ResourceResponse<ServiceProviderCatalog> createResponse(OslcResource resource, ClientResponse response)
Description copied from class:GetResource
Extracts aResourceResponse
instance from the obtained HTTP response. The response contains the response headers, from which theETag
header can be extracted in case this request is to follow by aPUT
.- Overrides:
createResponse
in 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.
-
-