Class GetUserGroup
- java.lang.Object
-
- com.sodius.oslc.client.requests.AbstractResourceRequest<ResourceResponse<T>>
-
- com.sodius.oslc.client.requests.GetResource<UserGroup>
-
- com.sodius.oslc.app.jazz.lqe.requests.GetUserGroup
-
- All Implemented Interfaces:
ResourceRequest<ResourceResponse<UserGroup>>
,Callable<ResourceResponse<UserGroup>>
public class GetUserGroup extends GetResource<UserGroup>
Gets the definition of a user group.- Since:
- 1.11.0
-
-
Constructor Summary
Constructors Constructor Description GetUserGroup(OslcClient client, URI uri)
Creates a request to get the definition of a LQE user group.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ResourceResponse<UserGroup>
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
-
GetUserGroup
public GetUserGroup(OslcClient client, URI uri)
Creates a request to get the definition of a LQE user group.- Parameters:
client
- the OSLC client to connect to the application.uri
- the user group URL
-
-
Method Detail
-
createResponse
protected ResourceResponse<UserGroup> 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<UserGroup>
- 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.
-
-