public class XmlStreamMarshaller extends Object implements StreamMarshaller
| Constructor and Description |
|---|
XmlStreamMarshaller(OutputStream outputStream)
Create a new XML marshaller that writes to the provided output stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bulkMarshal(int failOnErrors,
List<BulkOperation> operations)
Write the content of a SCIM bulk operation request or response.
|
void |
close()
Close the marshaller.
|
void |
marshal(BaseResource resource)
Write a SCIM object.
|
void |
marshal(Resources<? extends BaseResource> response)
Write a SCIM query response.
|
void |
marshal(SCIMException response)
Write a SCIM error response.
|
void |
writeBulkFinish()
Write the end of a bulk request or response.
|
void |
writeBulkOperation(BulkOperation o)
Write a bulk operation to a bulk request or response.
|
void |
writeBulkStart(int failOnErrors,
Set<String> schemaURIs)
Write the start of a bulk request or response.
|
public XmlStreamMarshaller(OutputStream outputStream) throws SCIMException
outputStream - The output stream to be written by this marshaller.SCIMException - If the marshaller could not be created.public void close() throws SCIMException
close in interface StreamMarshallerSCIMException - If the data could not be written.public void marshal(BaseResource resource) throws SCIMException
marshal in interface StreamMarshallerresource - The SCIM resource to be written.SCIMException - If the data could not be written.public void marshal(SCIMException response) throws SCIMException
marshal in interface StreamMarshallerresponse - The SCIM response to be written.SCIMException - If the data could not be written.public void marshal(Resources<? extends BaseResource> response) throws SCIMException
marshal in interface StreamMarshallerresponse - The SCIM response to be written.SCIMException - If the data could not be written.public void writeBulkStart(int failOnErrors, Set<String> schemaURIs) throws SCIMException
writeBulkStart in interface StreamMarshallerfailOnErrors - The value of failOnErrors, or -1 to not provide a
value.schemaURIs - The set of schema URIs used by the bulk request or
response.SCIMException - If the data could not be written.public void writeBulkOperation(BulkOperation o) throws SCIMException
writeBulkOperation in interface StreamMarshallero - The bulk operation to write.SCIMException - If the data could not be written.public void writeBulkFinish() throws SCIMException
writeBulkFinish in interface StreamMarshallerSCIMException - If the data could not be written.public void bulkMarshal(int failOnErrors, List<BulkOperation> operations) throws SCIMException
bulkMarshal in interface StreamMarshallerfailOnErrors - 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.