Class GetDataGroups
java.lang.Object
com.sodius.oslc.client.requests.AbstractResourceRequest<Collection<DataGroup>>
com.sodius.oslc.app.jazz.lqe.requests.GetDataGroups
- All Implemented Interfaces:
ResourceRequest<Collection<DataGroup>>,Callable<Collection<DataGroup>>
Gets the data groups defined in LQE.
- Since:
- 1.11.0
-
Constructor Summary
ConstructorsConstructorDescriptionGetDataGroups(OslcClient client, URI uri) Creates a request to get the data groups defined in LQE. -
Method Summary
Modifier and TypeMethodDescriptionprotected ClientResponsecall(OslcResource resource) Executes the request on the specified resource.protected Collection<DataGroup>createResponse(OslcResource resource, ClientResponse response) Processes the response obtained when executing a request on the specified resource.Methods inherited from class com.sodius.oslc.client.requests.AbstractResourceRequest
call, createErrorResponse, createResourceResponse, getClient, getUri
-
Constructor Details
-
GetDataGroups
Creates a request to get the data groups defined in LQE.- Parameters:
client- the OSLC client to connect to the application.uri- the URL for data group management, as defined byLqeRootServices.getDataGroups()- See Also:
-
-
Method Details
-
call
Description copied from class:AbstractResourceRequestExecutes the request on the specified resource. Subclasses may add extra information (such as headers) on the resource before executing the request.- Specified by:
callin classAbstractResourceRequest<Collection<DataGroup>>- Parameters:
resource- the resource on which to execute a request.- Returns:
- the response of the request execution.
-
createResponse
Description copied from class:AbstractResourceRequestProcesses the response obtained when executing a request on the specified resource. Due to the contract of theResourceRequestinterface, this method is called only when the HTTP response status is20x.- Specified by:
createResponsein classAbstractResourceRequest<Collection<DataGroup>>- 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.
-