Package org.apache.axiom.om
Class XOPEncoded<T>
- java.lang.Object
-
- org.apache.axiom.om.XOPEncoded<T>
-
public final class XOPEncoded<T> extends Object
Represent XOP encoded data. Since an XOP message is a MIME package with a root part in XML and a set of additional (binary) parts referenced from the main part, this class encapsulates an API dependent object representing the main part and anOMAttachmentAccessor
giving access to the attachments. Instances of this class can be obtained fromOMContainer.getXOPEncodedStreamReader(boolean)
.
-
-
Constructor Summary
Constructors Constructor Description XOPEncoded(T rootPart, OMAttachmentAccessor attachmentAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OMAttachmentAccessor
getAttachmentAccessor()
Get the accessor for the additional MIME parts referenced by the root part.T
getRootPart()
Get the root part of the XOP message.
-
-
-
Constructor Detail
-
XOPEncoded
public XOPEncoded(T rootPart, OMAttachmentAccessor attachmentAccessor)
-
-
Method Detail
-
getRootPart
public T getRootPart()
Get the root part of the XOP message.- Returns:
- the root part
-
getAttachmentAccessor
public OMAttachmentAccessor getAttachmentAccessor()
Get the accessor for the additional MIME parts referenced by the root part.- Returns:
- the attachment accessor
-
-