public abstract class AbstractJAXBAttachmentUnmarshaller extends javax.xml.bind.attachment.AttachmentUnmarshaller
JAXBAttachmentUnmarshaller and
JAXBAttachmentUnmarshaller. This is a partial
implementation of the AttachmentUnmarshaller class. It 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 |
|---|
AbstractJAXBAttachmentUnmarshaller(org.apache.axiom.util.stax.xop.MimePartProvider mimePartProvider) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getAttachmentAsByteArray(String cid) |
javax.activation.DataHandler |
getAttachmentAsDataHandler(String cid) |
protected abstract javax.activation.DataHandler |
getDataHandlerForSwA(String blobcid) |
boolean |
isXOPPackage() |
public AbstractJAXBAttachmentUnmarshaller(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.AttachmentUnmarshallerprotected abstract javax.activation.DataHandler getDataHandlerForSwA(String blobcid)
Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.