public class BulkContentRequestHandler extends BulkContentHandler
| Constructor and Description |
|---|
BulkContentRequestHandler(SCIMApplication application,
RequestContext requestContext,
SCIMBackend backend,
BulkStreamResponse bulkStreamResponse,
OAuthTokenHandler tokenHandler)
Create a new instance of this bulk operation handler.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceDescriptor |
getResourceDescriptor(String endpoint)
Retrieve the resource descriptor for a given endpoint.
|
boolean |
handleException(int opIndex,
BulkException bulkException)
Handle an exception encountered when processing an individual operation.
|
void |
handleFailOnErrors(int failOnErrors)
Handles the value of failOnErrors.
|
void |
handleOperation(int opIndex,
BulkOperation bulkOperation)
Handle an individual operation.
|
String |
transformValue(int opIndex,
String value)
Transform a data value.
|
public BulkContentRequestHandler(SCIMApplication application, RequestContext requestContext, SCIMBackend backend, BulkStreamResponse bulkStreamResponse, OAuthTokenHandler tokenHandler)
application - The SCIM application.requestContext - The request context for the bulk request.backend - The SCIM backend to process the operations.bulkStreamResponse - The bulk stream response to write response
operations to.tokenHandler - The OAuth token handler implementation to use.public void handleFailOnErrors(int failOnErrors)
handleFailOnErrors in class BulkContentHandlerfailOnErrors - The number of errors that the Service Provider will
accept before the operation is terminated and an
error response is returned.public String transformValue(int opIndex, String value)
transformValue in class BulkContentHandleropIndex - The index of the bulk operation containing the data value.value - The value to be transformed.public ResourceDescriptor getResourceDescriptor(String endpoint)
getResourceDescriptor in class BulkContentHandlerendpoint - A SCIM resource endpoint.null if the
endpoint is unknown.public void handleOperation(int opIndex, BulkOperation bulkOperation) throws BulkException, SCIMException
handleOperation in class BulkContentHandleropIndex - The index of the operation.bulkOperation - The individual operation within the bulk operation.BulkException - If an error occurs while processing the individual
operation within the bulk operation.SCIMException - If an error occurs that prevents processing of the
entire bulk content.public boolean handleException(int opIndex, BulkException bulkException) throws SCIMException
handleException in class BulkContentHandleropIndex - The index of the operation.bulkException - The exception encountered when processing an
individual operation within the bulk operation.true if operations should continue to be provided,
or false if the remaining operations are of no interest.SCIMException - If an error occurs that prevents processing of the
entire bulk content.Copyright © 2011–2016 UnboundID. All rights reserved.