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>
-
public class DeleteBuilder<T extends ResourceNode> extends ETagRequestBuilder<T>
author Pascal Knueppel
created at: 16.12.2019 - 11:35
-
-
Constructor Summary
Constructors Constructor Description DeleteBuilder(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
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 statusDeleteBuilder<T>setETagForIfMatch(ETag version)uses the given version with a If-Match header in the requestDeleteBuilder<T>setETagForIfMatch(String version)uses the given version with a If-Match header in the requestDeleteBuilder<T>setETagForIfNoneMatch(ETag version)uses the given version with a If-Match header in the requestDeleteBuilder<T>setETagForIfNoneMatch(String version)uses the given version with a If-Match header in the request-
Methods inherited from class de.captaingoldfish.scim.sdk.client.builder.ETagRequestBuilder
getVersion, isUseIfMatch, isUseIfNoneMatch
-
Methods inherited from class de.captaingoldfish.scim.sdk.client.builder.RequestBuilder
addHeaderToRequest, getBaseUrl, getEndpoint, getResource, getResponseEntityType, getScimHttpClient, isResponseParseable, sendRequest, sendRequest, sendRequestWithMultiHeaders, setResource, setResource, toResponse
-
-
-
-
Constructor Detail
-
DeleteBuilder
public DeleteBuilder(String fullUrl, Class<T> responseEntityType, ScimHttpClient scimHttpClient)
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
-
-
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<T extends ResourceNode>- Parameters:
httpStatus- the http status from the server- Returns:
- true if the response status shows success
-
setETagForIfMatch
public DeleteBuilder<T> setETagForIfMatch(String version)
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
public DeleteBuilder<T> setETagForIfNoneMatch(String version)
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
public DeleteBuilder<T> setETagForIfMatch(ETag version)
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
public DeleteBuilder<T> setETagForIfNoneMatch(ETag version)
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
-
-