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 theAttachmentUnmarshaller
class that handles the attachments provided by Axiom through theMimePartProvider
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
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)
DataHandler
getAttachmentAsDataHandler(String cid)
boolean
isXOPPackage()
-
-
-
Constructor Detail
-
JAXBAttachmentUnmarshaller
public JAXBAttachmentUnmarshaller(AttachmentContext context, OMAttachmentAccessor attachmentAccessor)
-
-
Method Detail
-
isXOPPackage
public final boolean isXOPPackage()
- Overrides:
isXOPPackage
in classAttachmentUnmarshaller
-
getAttachmentAsByteArray
public final byte[] getAttachmentAsByteArray(String cid)
- Specified by:
getAttachmentAsByteArray
in classAttachmentUnmarshaller
-
getAttachmentAsDataHandler
public final DataHandler getAttachmentAsDataHandler(String cid)
- Specified by:
getAttachmentAsDataHandler
in classAttachmentUnmarshaller
-
-