com.unboundid.scim.marshal.json
Class JsonBulkParser

java.lang.Object
  extended by com.unboundid.scim.marshal.json.JsonParser
      extended by com.unboundid.scim.marshal.json.JsonBulkParser

public class JsonBulkParser
extends JsonParser

This class is a helper class to handle parsing of JSON bulk operations.


Constructor Summary
JsonBulkParser(InputStream inputStream, BulkConfig bulkConfig, BulkContentHandler handler)
          Create a new instance of this bulk unmarshaller.
 
Method Summary
protected  SCIMAttribute createSimpleAttribute(Object jsonAttribute, AttributeDescriptor attributeDescriptor)
          Parse a simple attribute from its representation as a JSON Object.
 void setSkipOperations(boolean skipOperations)
          Specify whether bulk operations should be skipped.
 void unmarshal()
          Reads a SCIM bulk request or response from the input stream.
 
Methods inherited from class com.unboundid.scim.marshal.json.JsonParser
create, createComplexAttribute, createMutiValuedAttribute, unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonBulkParser

public JsonBulkParser(InputStream inputStream,
                      BulkConfig bulkConfig,
                      BulkContentHandler handler)
Create a new instance of this bulk unmarshaller.

Parameters:
inputStream - The input stream containing the bulk content to be read.
bulkConfig - The bulk configuration settings to be enforced.
handler - A bulk operation listener to handle the content as it is read.
Method Detail

setSkipOperations

public void setSkipOperations(boolean skipOperations)
Specify whether bulk operations should be skipped.

Parameters:
skipOperations - true if bulk operations should be skipped.

unmarshal

public void unmarshal()
               throws SCIMException
Reads a SCIM bulk request or response from the input stream.

Throws:
SCIMException - If the bulk content could not be read.

createSimpleAttribute

protected SCIMAttribute createSimpleAttribute(Object jsonAttribute,
                                              AttributeDescriptor attributeDescriptor)
Parse a simple attribute from its representation as a JSON Object.

Overrides:
createSimpleAttribute in class JsonParser
Parameters:
jsonAttribute - The JSON object representing the attribute.
attributeDescriptor - The attribute descriptor.
Returns:
The parsed attribute.


Copyright © 2011-2012 UnboundID. All Rights Reserved.