public final class JAXBAttachmentUnmarshaller extends 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.om.OMAttachmentAccessor attachmentAccessor) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getAttachmentAsByteArray(String cid) |
DataHandler |
getAttachmentAsDataHandler(String cid) |
boolean |
isXOPPackage() |
public JAXBAttachmentUnmarshaller(AttachmentContext context, org.apache.axiom.om.OMAttachmentAccessor attachmentAccessor)
public final boolean isXOPPackage()
isXOPPackage in class AttachmentUnmarshallerpublic final byte[] getAttachmentAsByteArray(String cid)
getAttachmentAsByteArray in class AttachmentUnmarshallerpublic final DataHandler getAttachmentAsDataHandler(String cid)
getAttachmentAsDataHandler in class AttachmentUnmarshallerCopyright © 2004–2020 The Apache Software Foundation. All rights reserved.