|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.unboundid.scim.sdk.BulkContentHandler
com.unboundid.scim.wink.BulkContentRequestHandler
public class BulkContentRequestHandler
This class implements the bulk operation handler to process bulk operation requests in the SCIM server. The original purpose of the BulkContentHandler interface was to allow each operation to be processed as soon as it had been read so that we do not have to hold the entire content of a bulk request in memory. However, there are two issues making that approach infeasible:
| Constructor Summary | |
|---|---|
BulkContentRequestHandler(SCIMApplication application,
RequestContext requestContext,
SCIMBackend backend,
BulkStreamResponse bulkStreamResponse)
Create a new instance of this bulk operation handler. |
|
| Method Summary | |
|---|---|
ResourceDescriptor |
getResourceDescriptor(String endpoint)
Retrieve the resource descriptor for a given endpoint. |
void |
handleFailOnErrors(int failOnErrors)
Handles the value of failOnErrors. |
boolean |
handleOperation(int opIndex,
BulkOperation bulkOperation)
Handle an individual operation. |
String |
transformValue(int opIndex,
String value)
Transform a data value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BulkContentRequestHandler(SCIMApplication application,
RequestContext requestContext,
SCIMBackend backend,
BulkStreamResponse bulkStreamResponse)
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.| Method Detail |
|---|
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 boolean handleOperation(int opIndex,
BulkOperation bulkOperation)
throws SCIMException
handleOperation in class BulkContentHandleropIndex - The index of the operation.bulkOperation - The 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||