public abstract class AbstractJAXBAttachmentUnmarshaller extends 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) |
DataHandler |
getAttachmentAsDataHandler(String cid) |
protected abstract DataHandler |
getDataHandlerForSwA(String blobcid) |
boolean |
isXOPPackage() |
public AbstractJAXBAttachmentUnmarshaller(org.apache.axiom.util.stax.xop.MimePartProvider mimePartProvider)
public final boolean isXOPPackage()
isXOPPackage
in class AttachmentUnmarshaller
public final byte[] getAttachmentAsByteArray(String cid)
getAttachmentAsByteArray
in class AttachmentUnmarshaller
public final DataHandler getAttachmentAsDataHandler(String cid)
getAttachmentAsDataHandler
in class AttachmentUnmarshaller
protected abstract DataHandler getDataHandlerForSwA(String blobcid)
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.