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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAll()this method can be used to retrieve all resources from the given startIndex of the given endpointprotected org.apache.http.client.methods.HttpUriRequestbuilds 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> checks if the response contains a schema-uri that matches the value ofSchemaUris.LIST_RESPONSE_URIsetExpectedResponseHeaders(Map<String, String> requiredResponseHeaders) Set this if the SCIM provider is not behaving SCIM compliant by manipulating the expected headers that will be returned from the server null: The headers are checked as normally for the content-type "application/scim+json" empty map: The check of response headers is disabled filled map: The check of the response headers will be done with the entries of this mapprotected ServerResponse<ListResponse<T>>toResponse(HttpResponse response) uses a custom response type that overrides the translation of the returned resourceMethods inherited from class de.captaingoldfish.scim.sdk.client.builder.RequestBuilder
addHeaderToRequest, getBaseUrl, getEndpoint, getRequiredHttpHeaders, getRequiredResponseHeaders, getResource, getResponseEntityType, getScimHttpClient, sendRequest, sendRequest, sendRequestWithMultiHeaders, setResource, setResource
-
Field Details
-
listBuilder
the original list builder instance
-
-
Constructor Details
-
GetRequestBuilder
-
-
Method Details
-
setExpectedResponseHeaders
public ListBuilder.GetRequestBuilder<T> setExpectedResponseHeaders(Map<String, String> requiredResponseHeaders) Set this if the SCIM provider is not behaving SCIM compliant by manipulating the expected headers that will be returned from the server- null: The headers are checked as normally for the content-type "application/scim+json"
- empty map: The check of response headers is disabled
- filled map: The check of the response headers will be done with the entries of this map
- Overrides:
setExpectedResponseHeadersin classRequestBuilder<ListResponse<T extends ResourceNode>>
-
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
checks if the response contains a schema-uri that matches the value ofSchemaUris.LIST_RESPONSE_URI- Overrides:
isResponseParseablein classRequestBuilder<ListResponse<T extends ResourceNode>>
-
toResponse
uses a custom response type that overrides the translation of the returned resource- Overrides:
toResponsein classRequestBuilder<ListResponse<T extends ResourceNode>>
-
getAll
this method can be used to retrieve all resources from the given startIndex of the given endpoint
-