Package org.apache.axis2.datasource.jaxb
Class JAXBAttachmentMarshaller
- java.lang.Object
-
- javax.xml.bind.attachment.AttachmentMarshaller
-
- org.apache.axis2.datasource.jaxb.JAXBAttachmentMarshaller
-
public final class JAXBAttachmentMarshaller extends AttachmentMarshaller
-
-
Constructor Summary
Constructors Constructor Description JAXBAttachmentMarshaller(AttachmentContext context, XMLStreamWriter writer)
Construct the JAXBAttachmentMarshaller that has access to the MessageContext
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
addMtomAttachment(byte[] data, int offset, int length, String mimeType, String namespace, String localPart)
String
addMtomAttachment(DataHandler data, String namespace, String localPart)
String
addSwaRefAttachment(DataHandler data)
boolean
isXOPPackage()
Override isXOPPackaget to calculate the isXOPPackage setting
-
-
-
Constructor Detail
-
JAXBAttachmentMarshaller
public JAXBAttachmentMarshaller(AttachmentContext context, XMLStreamWriter writer)
Construct the JAXBAttachmentMarshaller that has access to the MessageContext- Parameters:
msgContext
-writer
-
-
-
Method Detail
-
isXOPPackage
public boolean isXOPPackage()
Override isXOPPackaget to calculate the isXOPPackage setting- Overrides:
isXOPPackage
in classAttachmentMarshaller
-
addMtomAttachment
public final String addMtomAttachment(byte[] data, int offset, int length, String mimeType, String namespace, String localPart)
- Specified by:
addMtomAttachment
in classAttachmentMarshaller
-
addMtomAttachment
public final String addMtomAttachment(DataHandler data, String namespace, String localPart)
- Specified by:
addMtomAttachment
in classAttachmentMarshaller
-
addSwaRefAttachment
public final String addSwaRefAttachment(DataHandler data)
- Specified by:
addSwaRefAttachment
in classAttachmentMarshaller
-
-