org.apache.axis2.datasource.jaxb
Class JAXBAttachmentUnmarshaller

java.lang.Object
  extended by javax.xml.bind.attachment.AttachmentUnmarshaller
      extended by org.apache.axis2.datasource.jaxb.JAXBAttachmentUnmarshaller
Direct Known Subclasses:
JAXBAttachmentUnmarshaller

public class JAXBAttachmentUnmarshaller
extends AttachmentUnmarshaller

JAXBAttachmentUnmarshaller

An implementation of the javax.xml.bind.attachment.AttachmentUnmarshaller that is used for deserializing XOP elements into their corresponding binary data packages.


Constructor Summary
JAXBAttachmentUnmarshaller(MessageContext msgContext, XMLStreamReader xmlStreamReader)
           
 
Method Summary
 byte[] getAttachmentAsByteArray(String cid)
           
 DataHandler getAttachmentAsDataHandler(String cid)
           
protected  DataHandler getDataHandler(String cid)
           
 boolean isXOPPackage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBAttachmentUnmarshaller

public JAXBAttachmentUnmarshaller(MessageContext msgContext,
                                  XMLStreamReader xmlStreamReader)
Method Detail

isXOPPackage

public boolean isXOPPackage()
Overrides:
isXOPPackage in class AttachmentUnmarshaller

getAttachmentAsByteArray

public byte[] getAttachmentAsByteArray(String cid)
Specified by:
getAttachmentAsByteArray in class AttachmentUnmarshaller

getAttachmentAsDataHandler

public DataHandler getAttachmentAsDataHandler(String cid)
Specified by:
getAttachmentAsDataHandler in class AttachmentUnmarshaller

getDataHandler

protected DataHandler getDataHandler(String cid)


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