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 Details

    • JAXBAttachmentUnmarshaller

      public JAXBAttachmentUnmarshaller(AttachmentContext context, org.apache.axiom.om.OMAttachmentAccessor attachmentAccessor)
  • Method Details

    • isXOPPackage

      public final boolean isXOPPackage()
      Overrides:
      isXOPPackage in class jakarta.xml.bind.attachment.AttachmentUnmarshaller
    • getAttachmentAsByteArray

      public final byte[] getAttachmentAsByteArray(String cid)
      Specified by:
      getAttachmentAsByteArray in class jakarta.xml.bind.attachment.AttachmentUnmarshaller
    • getAttachmentAsDataHandler

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