Enables Jakarta XML Binding unmarshalling of a root document containing optimized binary data formats.
This API enables an efficient cooperative processing of optimized binary data formats between a Jakarta XML Binding implementation and MIME-based package processor (MTOM/XOP and WS-I AP 1.0). Jakarta XML Binding unmarshals the body of a package, delegating the understanding of the packaging format being used to a MIME-based package processor that implements this abstract class.
This abstract class identifies if a package requires XOP processing, isXOPPackage()
and provides retrieval of binary content stored as attachments by content-id.
getAttachment*(String cid)ref:swaRef specified in
Section 4.4 Referencing Attachments from the SOAP Envelope
jakarta.xml.bind.Unmarshaller#setAttachmentUnmarshaller(AttachmentUnmarshaller), XML-binary Optimized Packaging, WS-I Attachments Profile Version 1.0., Describing Media Content of Binary Data in XML
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract byte[] | Returns: byte[] representation of attachment identified by cid.It is expected to be a valid lexical form of the XML Schema
cid)xs:anyURI datatype. If isXOPPackage()==true,
it must be a valid URI per the cid: URI scheme (see RFC 2387)Retrieve the attachment identified by content-id, |
| public abstract DataHandler | Returns: aDataHandler that represents the MIME attachment.It is expected to be a valid lexical form of the XML Schema
cid)xs:anyURI datatype. If isXOPPackage()==true,
it must be a valid URI per the cid: URI scheme (see RFC 2387)Lookup MIME content by content-id, |
| public boolean | Returns: true when MIME context is a XOP Document.Read-only property that returns true if Jakarta XML Binding unmarshaller needs to perform XOP processing. |
| AttachmentUnmarshaller | back to summary |
|---|---|
| protected AttachmentUnmarshaller() Do-nothing constructor for the derived classes. | |
| getAttachmentAsByteArray | back to summary |
|---|---|
| public abstract byte[] getAttachmentAsByteArray(String cid) Retrieve the attachment identified by content-id,
| |
| getAttachmentAsDataHandler | back to summary | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public abstract DataHandler getAttachmentAsDataHandler(String cid) Lookup MIME content by content-id, The returned
| |||||||||||
| isXOPPackage | back to summary |
|---|---|
| public boolean isXOPPackage() Read-only property that returns true if Jakarta XML Binding unmarshaller needs to perform XOP processing. This method returns
| |