org.apache.axis2.datasource.jaxb
Class AbstractJAXBAttachmentUnmarshaller

java.lang.Object
  extended by javax.xml.bind.attachment.AttachmentUnmarshaller
      extended by 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.


Constructor Summary
AbstractJAXBAttachmentUnmarshaller(org.apache.axiom.util.stax.xop.MimePartProvider mimePartProvider)
           
 
Method Summary
 byte[] getAttachmentAsByteArray(String cid)
           
 DataHandler getAttachmentAsDataHandler(String cid)
           
protected abstract  DataHandler getDataHandlerForSwA(String blobcid)
           
 boolean isXOPPackage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJAXBAttachmentUnmarshaller

public AbstractJAXBAttachmentUnmarshaller(org.apache.axiom.util.stax.xop.MimePartProvider mimePartProvider)
Method Detail

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.