public class JsonBulkParser extends JsonParser
| Constructor and Description |
|---|
JsonBulkParser(InputStream inputStream,
BulkConfig bulkConfig,
BulkContentHandler handler)
Create a new instance of this bulk unmarshaller.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
create, createComplexAttribute, createMultiValuedAttribute, unmarshalpublic JsonBulkParser(InputStream inputStream, BulkConfig bulkConfig, BulkContentHandler handler)
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.public void setSkipOperations(boolean skipOperations)
skipOperations - true if bulk operations should be skipped.public void unmarshal() throws SCIMException
SCIMException - If the bulk content could not be read.protected SCIMAttribute createSimpleAttribute(Object jsonAttribute, AttributeDescriptor attributeDescriptor)
createSimpleAttribute in class JsonParserjsonAttribute - The JSON object representing the attribute.attributeDescriptor - The attribute descriptor.Copyright © 2011–2016 UnboundID. All rights reserved.