org.apache.axis2.datasource.jaxb
Class AbstractJAXBAttachmentUnmarshaller
java.lang.Object
javax.xml.bind.attachment.AttachmentUnmarshaller
org.apache.axis2.datasource.jaxb.AbstractJAXBAttachmentUnmarshaller
- Direct Known Subclasses:
- JAXBAttachmentUnmarshaller, JAXBAttachmentUnmarshaller
public abstract class AbstractJAXBAttachmentUnmarshaller
- extends AttachmentUnmarshaller
Abstract base class for 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractJAXBAttachmentUnmarshaller
public AbstractJAXBAttachmentUnmarshaller(org.apache.axiom.util.stax.xop.MimePartProvider mimePartProvider)
isXOPPackage
public final boolean isXOPPackage()
- Overrides:
isXOPPackage in class AttachmentUnmarshaller
getAttachmentAsByteArray
public final byte[] getAttachmentAsByteArray(String cid)
- Specified by:
getAttachmentAsByteArray in class AttachmentUnmarshaller
getAttachmentAsDataHandler
public final DataHandler getAttachmentAsDataHandler(String cid)
- Specified by:
getAttachmentAsDataHandler in class AttachmentUnmarshaller
getDataHandlerForSwA
protected abstract DataHandler getDataHandlerForSwA(String blobcid)
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.