public final class JAXBAttachmentUnmarshaller extends javax.xml.bind.attachment.AttachmentUnmarshaller
AttachmentUnmarshaller class that handles the attachments provided
by Axiom through the MimePartProvider interface. It should be noted that while Axiom only
handles attachments referenced using XOP, AttachmentUnmarshaller is also used to retrieve
attachments from SwA messages. Hence the #getDataHandlerForSwA(String) method.| Constructor and Description |
|---|
JAXBAttachmentUnmarshaller(AttachmentContext context,
org.apache.axiom.util.stax.xop.MimePartProvider mimePartProvider) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getAttachmentAsByteArray(String cid) |
javax.activation.DataHandler |
getAttachmentAsDataHandler(String cid) |
boolean |
isXOPPackage() |
public JAXBAttachmentUnmarshaller(AttachmentContext context, org.apache.axiom.util.stax.xop.MimePartProvider mimePartProvider)
public final boolean isXOPPackage()
isXOPPackage in class javax.xml.bind.attachment.AttachmentUnmarshallerpublic final byte[] getAttachmentAsByteArray(String cid)
getAttachmentAsByteArray in class javax.xml.bind.attachment.AttachmentUnmarshallerpublic final javax.activation.DataHandler getAttachmentAsDataHandler(String cid)
getAttachmentAsDataHandler in class javax.xml.bind.attachment.AttachmentUnmarshallerCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.