public class GetDataGroups extends AbstractResourceRequest<Collection<DataGroup>>
Constructor and Description |
---|
GetDataGroups(OslcClient client,
URI uri)
Creates a request to get the data groups defined in LQE.
|
Modifier and Type | Method and Description |
---|---|
protected ClientResponse |
call(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.
|
call, createErrorResponse, createResourceResponse, getClient, getUri
public GetDataGroups(OslcClient client, URI uri)
client
- the OSLC client to connect to the application.uri
- the URL for data group management, as defined by LqeRootServices.getDataGroups()
LqeRootServices.getDataGroups()
protected ClientResponse call(OslcResource resource)
AbstractResourceRequest
call
in class AbstractResourceRequest<Collection<DataGroup>>
resource
- the resource on which to execute a request.protected Collection<DataGroup> createResponse(OslcResource resource, ClientResponse response)
AbstractResourceRequest
ResourceRequest
interface, this method is called only when the HTTP response status is 20x
.createResponse
in class AbstractResourceRequest<Collection<DataGroup>>
resource
- the resource on which a request is executed.response
- the response obtained.