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 javax.xml.bind.attachment.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(java.lang.String cid)
           
 javax.activation.DataHandler getAttachmentAsDataHandler(java.lang.String cid)
           
protected abstract  javax.activation.DataHandler getDataHandlerForSwA(java.lang.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 javax.xml.bind.attachment.AttachmentUnmarshaller

getAttachmentAsByteArray

public final byte[] getAttachmentAsByteArray(java.lang.String cid)
Specified by:
getAttachmentAsByteArray in class javax.xml.bind.attachment.AttachmentUnmarshaller

getAttachmentAsDataHandler

public final javax.activation.DataHandler getAttachmentAsDataHandler(java.lang.String cid)
Specified by:
getAttachmentAsDataHandler in class javax.xml.bind.attachment.AttachmentUnmarshaller

getDataHandlerForSwA

protected abstract javax.activation.DataHandler getDataHandlerForSwA(java.lang.String blobcid)


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.