Class DeleteBuilder<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.DeleteBuilder<T>
author Pascal Knueppel
created at: 16.12.2019 - 11:35
created at: 16.12.2019 - 11:35
-
Constructor Summary
ConstructorsConstructorDescriptionDeleteBuilder(String fullUrl, Class<T> responseEntityType, ScimHttpClient scimHttpClient) if the resource should be retrieved by using the fully qualified urlDeleteBuilder(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 servera delete response does not require any response headersprotected 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 requestprotected DeleteBuilder<T>setExpectedResponseHeaders(Map<String, String> requiredResponseHeaders) Kept protected for delete requests to prevent misunderstandings.setResource(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, getResource, getResponseEntityType, getScimHttpClient, isResponseParseable, sendRequest, sendRequest, sendRequestWithMultiHeaders, toResponse
-
Constructor Details
-
DeleteBuilder
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
-
DeleteBuilder
-
-
Method Details
-
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
-
setExpectedResponseHeaders
Kept protected for delete requests to prevent misunderstandings. The delete-response-header check is disabled by default because we do not expect any content-types on delete for example- Overrides:
setExpectedResponseHeadersin classRequestBuilder<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<T extends ResourceNode>- Parameters:
httpStatus- the http status from the server- Returns:
- true if the response status shows success
-
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
-
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>- Returns:
- a delete request to the desired resource
-
getRequiredResponseHeaders
a delete response does not require any response headers- Overrides:
getRequiredResponseHeadersin classRequestBuilder<T extends ResourceNode>
-