Package org.apache.axis2.datasource.jaxb
Class JAXBAttachmentUnmarshaller
- java.lang.Object
-
- javax.xml.bind.attachment.AttachmentUnmarshaller
-
- org.apache.axis2.datasource.jaxb.JAXBAttachmentUnmarshaller
-
public final class JAXBAttachmentUnmarshaller extends AttachmentUnmarshaller
Implementation of theAttachmentUnmarshallerclass that handles the attachments provided by Axiom through theMimePartProviderinterface. It should be noted that while Axiom only handles attachments referenced using XOP,AttachmentUnmarshalleris also used to retrieve attachments from SwA messages. Hence the#getDataHandlerForSwA(String)method.
-
-
Constructor Summary
Constructors Constructor Description JAXBAttachmentUnmarshaller(AttachmentContext context, OMAttachmentAccessor attachmentAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getAttachmentAsByteArray(String cid)DataHandlergetAttachmentAsDataHandler(String cid)booleanisXOPPackage()
-
-
-
Constructor Detail
-
JAXBAttachmentUnmarshaller
public JAXBAttachmentUnmarshaller(AttachmentContext context, OMAttachmentAccessor attachmentAccessor)
-
-
Method Detail
-
isXOPPackage
public final boolean isXOPPackage()
- Overrides:
isXOPPackagein classAttachmentUnmarshaller
-
getAttachmentAsByteArray
public final byte[] getAttachmentAsByteArray(String cid)
- Specified by:
getAttachmentAsByteArrayin classAttachmentUnmarshaller
-
getAttachmentAsDataHandler
public final DataHandler getAttachmentAsDataHandler(String cid)
- Specified by:
getAttachmentAsDataHandlerin classAttachmentUnmarshaller
-
-