|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.unboundid.scim.marshal.xml.XmlStreamMarshaller
public class XmlStreamMarshaller
This class provides a stream marshaller implementation to write a stream of SCIM objects to their XML representation.
| Constructor Summary | |
|---|---|
XmlStreamMarshaller(OutputStream outputStream)
Create a new XML marshaller that writes to the provided output stream. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlStreamMarshaller(OutputStream outputStream)
throws SCIMException
outputStream - The output stream to be written by this marshaller.
SCIMException - If the marshaller could not be created.| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||