Class BulkBuilder.BulkRequestOperationCreator
java.lang.Object
de.captaingoldfish.scim.sdk.client.builder.BulkBuilder.BulkRequestOperationCreator
- Enclosing class:
- BulkBuilder
an additional build step class that allows to set the values of a bulk operation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsets the bulkId for this operation.data(com.fasterxml.jackson.databind.JsonNode data) sets the request body for this operation if any is requiredsets the request body for this operation if any is requiredmaxResourceLevel(int maxResourceLevel) only usable for the SCIM-SDKs Bulk-Get custom feature.method(HttpMethod method) sets the http method for this bulk operationnext()returnResource(boolean returnResource) asks the server to return the resource within the bulk response.builds the operation and directly sends the request to the serversendRequest(Consumer<ServerResponse<BulkResponse>> responseHandler) builds the operation and directly sends the request to the serversendRequest(Map<String, String> httpHeaders) builds the operation and directly sends the request to the serversendRequest(Map<String, String> httpHeaders, Consumer<ServerResponse<BulkResponse>> responseHandler) builds the operation and directly sends the request to the serversendRequestWithMultiHeaders(Map<String, String[]> httpHeaders) builds the operation and directly sends the request to the serversendRequestWithMultiHeaders(Map<String, String[]> httpHeaders, Consumer<ServerResponse<BulkResponse>> responseHandler) builds the operation and directly sends the request to the serversets the etag version for this operation which may be used on update, path and delete requests
-
Constructor Details
-
BulkRequestOperationCreator
-
-
Method Details
-
method
sets the http method for this bulk operation -
bulkId
sets the bulkId for this operation. Required if http method is post and optional in any other cases -
data
sets the request body for this operation if any is required -
data
sets the request body for this operation if any is required -
version
sets the etag version for this operation which may be used on update, path and delete requests -
returnResource
asks the server to return the resource within the bulk response. This feature is supported only by the SCIM-SDK implementation. -
maxResourceLevel
only usable for the SCIM-SDKs Bulk-Get custom feature. It limits the amount of resources to be returned from the server if the bulk-get feature is utilized -
next
- Returns:
- builds the operation object and returns to the owning top level instance
-
sendRequest
builds the operation and directly sends the request to the server -
sendRequest
public ServerResponse<BulkResponse> sendRequest(Consumer<ServerResponse<BulkResponse>> responseHandler) builds the operation and directly sends the request to the server- Parameters:
responseHandler- a helper method to will allow the client to react to each individual response. This makes only sense if the featureScimClientConfig.isEnableAutomaticBulkRequestSplitting()is enabled
-
sendRequest
builds the operation and directly sends the request to the server -
sendRequest
public ServerResponse<BulkResponse> sendRequest(Map<String, String> httpHeaders, Consumer<ServerResponse<BulkResponse>> responseHandler) builds the operation and directly sends the request to the server- Parameters:
responseHandler- a helper method to will allow the client to react to each individual response. This makes only sense if the featureScimClientConfig.isEnableAutomaticBulkRequestSplitting()is enabled
-
sendRequestWithMultiHeaders
builds the operation and directly sends the request to the server -
sendRequestWithMultiHeaders
public ServerResponse<BulkResponse> sendRequestWithMultiHeaders(Map<String, String[]> httpHeaders, Consumer<ServerResponse<BulkResponse>> responseHandler) builds the operation and directly sends the request to the server- Parameters:
responseHandler- a helper method to will allow the client to react to each individual response. This makes only sense if the featureScimClientConfig.isEnableAutomaticBulkRequestSplitting()is enabled
-