java.lang.Objectjavax.xml.bind.attachment.AttachmentMarshaller
Enable JAXB marshalling to optimize storage of binary data.
This API enables an efficient cooperative creation of optimized binary data formats between a JAXB marshalling process and a MIME-based package processor. A JAXB implementation marshals the root body of a MIME-based package, delegating the creation of referenceable MIME parts to the MIME-based package processor that implements this abstraction.
XOP processing is enabled when #isXOPPackage() is true. See #addMtomAttachment(DataHandler, String, String) for details.
WS-I Attachment Profile 1.0 is supported by #addSwaRefAttachment(DataHandler) being called by the marshaller for each JAXB property related to {http://ws-i.org/profiles/basic/1.1/xsd}swaRef.
Marc - HadleyKohsuke - KawaguchiJoseph - FialliJAXB - 2.0| Method from javax.xml.bind.attachment.AttachmentMarshaller Summary: |
|---|
| addMtomAttachment, addMtomAttachment, addSwaRefAttachment, isXOPPackage |
| Methods from java.lang.Object: |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from javax.xml.bind.attachment.AttachmentMarshaller Detail: |
|---|
Consider MIME content
This method is called by JAXB marshal process when #isXOPPackage() is
The method implementor determines whether
The caller of this method is required to meet the following constraint.
If the element infoset item containing
The |
Consider binary Since content type is not known, the attachment's MIME content type must be set to "application/octet-stream".
The |
Add MIME This method is called by JAXB marshal process for each element/attribute typed as {http://ws-i.org/profiles/basic/1.1/xsd}swaRef. The MIME-based package processor implementing this method is responsible for attaching the specified data to a MIME attachment, and generating a content-id, cid, that uniquely identifies the attachment within the MIME-based package. Caller inserts the returned content-id, cid, into the XML content being marshalled. |
Read-only property that returns true if JAXB marshaller should enable XOP creation. This value must not change during the marshalling process. When this
value is true, the Marshaller.marshal() must throw IllegalStateException if this value is When this method returns true and during the marshal process
at least one call to |