public class JsonUnmarshaller extends Object implements Unmarshaller
| Constructor and Description |
|---|
JsonUnmarshaller() |
| Modifier and Type | Method and Description |
|---|---|
void |
bulkUnmarshal(File file,
BulkConfig bulkConfig,
BulkContentHandler handler)
Reads a SCIM bulk request or response from a file.
|
void |
bulkUnmarshal(InputStream inputStream,
BulkConfig bulkConfig,
BulkContentHandler handler)
Reads a SCIM bulk request or response from an input stream.
|
<R extends BaseResource> |
unmarshal(InputStream inputStream,
ResourceDescriptor resourceDescriptor,
ResourceFactory<R> resourceFactory)
Reads a SCIM resource from an input stream.
|
SCIMException |
unmarshalError(InputStream inputStream)
Reads a SCIM error response from an input stream.
|
<R extends BaseResource> |
unmarshalResources(InputStream inputStream,
ResourceDescriptor resourceDescriptor,
ResourceFactory<R> resourceFactory)
Reads a SCIM query response from an input stream.
|
public JsonUnmarshaller()
public <R extends BaseResource> R unmarshal(InputStream inputStream, ResourceDescriptor resourceDescriptor, ResourceFactory<R> resourceFactory) throws InvalidResourceException
unmarshal in interface UnmarshallerR - The type of resource instance.inputStream - The input stream containing the SCIM object to be read.resourceDescriptor - The descriptor of the SCIM resource to be read.resourceFactory - The resource factory to use to create the resource
instance.InvalidResourceException - If an error occurred.public <R extends BaseResource> Resources<R> unmarshalResources(InputStream inputStream, ResourceDescriptor resourceDescriptor, ResourceFactory<R> resourceFactory) throws InvalidResourceException
unmarshalResources in interface UnmarshallerR - The type of resource instance.inputStream - The input stream containing the SCIM object to be read.resourceDescriptor - The descriptor of the SCIM resource to be read.resourceFactory - The resource factory to use to create the resource
instance.InvalidResourceException - If an error occurred.public SCIMException unmarshalError(InputStream inputStream) throws InvalidResourceException
unmarshalError in interface UnmarshallerinputStream - The input stream containing the SCIM object to be read.InvalidResourceException - If an error occurred.public void bulkUnmarshal(InputStream inputStream, BulkConfig bulkConfig, BulkContentHandler handler) throws SCIMException
bulkUnmarshal in interface UnmarshallerinputStream - 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.SCIMException - If the bulk content could not be read.public void bulkUnmarshal(File file, BulkConfig bulkConfig, BulkContentHandler handler) throws SCIMException
bulkUnmarshal in interface Unmarshallerfile - The file 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.SCIMException - If the bulk content could not be read.Copyright © 2011–2016 UnboundID. All rights reserved.