Class ListBuilder.GetRequestBuilder<T extends ResourceNode>
- java.lang.Object
-
- de.captaingoldfish.scim.sdk.client.builder.RequestBuilder<ListResponse<T>>
-
- de.captaingoldfish.scim.sdk.client.builder.ListBuilder.GetRequestBuilder<T>
-
- Enclosing class:
- ListBuilder<T extends ResourceNode>
public static class ListBuilder.GetRequestBuilder<T extends ResourceNode> extends RequestBuilder<ListResponse<T>>
a request builder that builds the list-request as a http-get request
-
-
Constructor Summary
Constructors Constructor Description GetRequestBuilder(ListBuilder<T> listBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.http.client.methods.HttpUriRequestgetHttpUriRequest()builds the request for the serverprotected booleanisExpectedResponseCode(int httpStatus)tells this abstract class if the http status from the server is the expected success statusprotected Function<HttpResponse,Boolean>isResponseParseable()checks if the response contains a schema-uri that matches the value ofSchemaUris.LIST_RESPONSE_URIprotected ServerResponse<ListResponse<T>>toResponse(HttpResponse response)uses a custom response type that overrides the translation of the returned resource-
Methods inherited from class de.captaingoldfish.scim.sdk.client.builder.RequestBuilder
addHeaderToRequest, getBaseUrl, getEndpoint, getResource, getResponseEntityType, getScimHttpClient, sendRequest, sendRequest, sendRequestWithMultiHeaders, setResource, setResource
-
-
-
-
Constructor Detail
-
GetRequestBuilder
public GetRequestBuilder(ListBuilder<T> listBuilder)
-
-
Method Detail
-
isExpectedResponseCode
protected boolean isExpectedResponseCode(int httpStatus)
tells this abstract class if the http status from the server is the expected success status- Specified by:
isExpectedResponseCodein classRequestBuilder<ListResponse<T extends ResourceNode>>- Parameters:
httpStatus- the http status from the server- Returns:
- true if the response status shows success
-
getHttpUriRequest
protected org.apache.http.client.methods.HttpUriRequest getHttpUriRequest()
builds the request for the server- Specified by:
getHttpUriRequestin classRequestBuilder<ListResponse<T extends ResourceNode>>
-
isResponseParseable
protected Function<HttpResponse,Boolean> isResponseParseable()
checks if the response contains a schema-uri that matches the value ofSchemaUris.LIST_RESPONSE_URI- Overrides:
isResponseParseablein classRequestBuilder<ListResponse<T extends ResourceNode>>
-
toResponse
protected ServerResponse<ListResponse<T>> toResponse(HttpResponse response)
uses a custom response type that overrides the translation of the returned resource- Overrides:
toResponsein classRequestBuilder<ListResponse<T extends ResourceNode>>
-
-