public class JsonMarshaller extends Object implements Marshaller
| Constructor and Description |
|---|
JsonMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
void |
bulkMarshal(OutputStream outputStream,
int failOnErrors,
List<BulkOperation> operations)
Write the content of a SCIM bulk operation request or response to an
output stream.
|
void |
marshal(BaseResource resource,
OutputStream outputStream)
Write a SCIM object to an output stream.
|
void |
marshal(Resources<? extends BaseResource> response,
OutputStream outputStream)
Write a SCIM listing response to an output stream.
|
void |
marshal(SCIMException response,
OutputStream outputStream)
Write a SCIM error response to an output stream.
|
public JsonMarshaller()
public void marshal(BaseResource resource, OutputStream outputStream) throws SCIMException
marshal in interface Marshallerresource - The SCIM resource to be written.outputStream - The output stream to which the SCIM object should
be written.SCIMException - If the data could not be written.public void marshal(Resources<? extends BaseResource> response, OutputStream outputStream) throws SCIMException
marshal in interface Marshallerresponse - The SCIM response to be written.outputStream - The output stream to which the SCIM response should
be written.SCIMException - If the data could not be written.public void marshal(SCIMException response, OutputStream outputStream) throws SCIMException
marshal in interface Marshallerresponse - The SCIM response to be written.outputStream - The output stream to which the SCIM response should
be written.SCIMException - If the data could not be written.public void bulkMarshal(OutputStream outputStream, int failOnErrors, List<BulkOperation> operations) throws SCIMException
bulkMarshal in interface MarshalleroutputStream - The output stream to which the content should be
written.failOnErrors - The value of failOnErrors, or -1 to not provide a
value.operations - The bulk operations to include in the content.SCIMException - If the data could not be written.Copyright © 2011–2016 UnboundID. All rights reserved.