Class UpdateBuilder<T extends ResourceNode>
java.lang.Object
de.captaingoldfish.scim.sdk.client.builder.RequestBuilder<T>
de.captaingoldfish.scim.sdk.client.builder.ETagRequestBuilder<T>
de.captaingoldfish.scim.sdk.client.builder.UpdateBuilder<T>
author Pascal Knueppel
created at: 16.12.2019 - 12:04
created at: 16.12.2019 - 12:04
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateBuilder(String fullUrl, Class<T> responseEntityType, ScimHttpClient scimHttpClient) if the resource should be retrieved by using the fully qualified urlUpdateBuilder(String baseUrl, String endpoint, String resourceId, Class<T> responseEntityType, ScimHttpClient scimHttpClient) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 statussetETagForIfMatch(ETag version) uses the given version with a If-Match header in the requestsetETagForIfMatch(String version) uses the given version with a If-Match header in the requestsetETagForIfNoneMatch(ETag version) uses the given version with a If-Match header in the requestsetETagForIfNoneMatch(String version) uses the given version with a If-Match header in the requestsetExpectedResponseHeaders(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 mapsetResource(com.fasterxml.jackson.databind.JsonNode resource) setResource(String resource) Methods inherited from class de.captaingoldfish.scim.sdk.client.builder.ETagRequestBuilder
getVersion, isUseIfMatch, isUseIfNoneMatchMethods inherited from class de.captaingoldfish.scim.sdk.client.builder.RequestBuilder
addHeaderToRequest, getBaseUrl, getEndpoint, getRequiredHttpHeaders, getRequiredResponseHeaders, getResource, getResponseEntityType, getScimHttpClient, isResponseParseable, sendRequest, sendRequest, sendRequestWithMultiHeaders, toResponse
-
Constructor Details
-
UpdateBuilder
if the resource should be retrieved by using the fully qualified url- Parameters:
fullUrl- the fully qualified url to the required resourceresponseEntityType- the type of the resource that should be returnedscimHttpClient- the http client instance
-
UpdateBuilder
-
-
Method Details
-
setExpectedResponseHeaders
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<T extends ResourceNode>
-
setResource
- Overrides:
setResourcein classRequestBuilder<T extends ResourceNode>- Parameters:
resource- sets the resource that should be sent to the service provider
-
setResource
- Overrides:
setResourcein classRequestBuilder<T extends ResourceNode>- Parameters:
resource- sets the resource that should be sent to the service provider
-
setETagForIfMatch
uses the given version with a If-Match header in the request- Overrides:
setETagForIfMatchin classETagRequestBuilder<T extends ResourceNode>- Parameters:
version- the version to use in the request- Returns:
- this builder object
-
setETagForIfNoneMatch
uses the given version with a If-Match header in the request- Overrides:
setETagForIfNoneMatchin classETagRequestBuilder<T extends ResourceNode>- Parameters:
version- the version to use in the request- Returns:
- this builder object
-
setETagForIfMatch
uses the given version with a If-Match header in the request- Overrides:
setETagForIfMatchin classETagRequestBuilder<T extends ResourceNode>- Parameters:
version- the version to use in the request- Returns:
- this builder object
-
setETagForIfNoneMatch
uses the given version with a If-Match header in the request- Overrides:
setETagForIfNoneMatchin classETagRequestBuilder<T extends ResourceNode>- Parameters:
version- the version to use in the request- Returns:
- this builder object
-
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<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()Description copied from class:RequestBuilderbuilds the request for the server- Specified by:
getHttpUriRequestin classRequestBuilder<T extends ResourceNode>
-