Package org.apache.axis2.datasource.jaxb
Class JAXBAttachmentUnmarshaller
java.lang.Object
jakarta.xml.bind.attachment.AttachmentUnmarshaller
org.apache.axis2.datasource.jaxb.JAXBAttachmentUnmarshaller
public final class JAXBAttachmentUnmarshaller
extends jakarta.xml.bind.attachment.AttachmentUnmarshaller
Implementation of the
AttachmentUnmarshaller class that 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
ConstructorsConstructorDescriptionJAXBAttachmentUnmarshaller(AttachmentContext context, org.apache.axiom.om.OMAttachmentAccessor attachmentAccessor) -
Method Summary
Modifier and TypeMethodDescriptionfinal byte[]final jakarta.activation.DataHandlerfinal boolean
-
Constructor Details
-
JAXBAttachmentUnmarshaller
public JAXBAttachmentUnmarshaller(AttachmentContext context, org.apache.axiom.om.OMAttachmentAccessor attachmentAccessor)
-
-
Method Details
-
isXOPPackage
public final boolean isXOPPackage()- Overrides:
isXOPPackagein classjakarta.xml.bind.attachment.AttachmentUnmarshaller
-
getAttachmentAsByteArray
- Specified by:
getAttachmentAsByteArrayin classjakarta.xml.bind.attachment.AttachmentUnmarshaller
-
getAttachmentAsDataHandler
- Specified by:
getAttachmentAsDataHandlerin classjakarta.xml.bind.attachment.AttachmentUnmarshaller
-