public class JAXBAttachmentMarshaller extends AttachmentMarshaller
Constructor and Description |
---|
JAXBAttachmentMarshaller(Collection<Attachment> attachments,
Integer mtomThreshold) |
Modifier and Type | Method and Description |
---|---|
String |
addMtomAttachment(byte[] data,
int offset,
int length,
String mimeType,
String elementNS,
String elementLocalName) |
String |
addMtomAttachment(DataHandler handler,
String elementNS,
String elementLocalName) |
String |
addSwaRefAttachment(DataHandler handler) |
QName |
getLastMTOMElementName() |
boolean |
isXOPPackage() |
void |
setXOPPackage(boolean xop) |
public JAXBAttachmentMarshaller(Collection<Attachment> attachments, Integer mtomThreshold)
public QName getLastMTOMElementName()
public String addMtomAttachment(byte[] data, int offset, int length, String mimeType, String elementNS, String elementLocalName)
addMtomAttachment
in class AttachmentMarshaller
public String addMtomAttachment(DataHandler handler, String elementNS, String elementLocalName)
addMtomAttachment
in class AttachmentMarshaller
public String addSwaRefAttachment(DataHandler handler)
addSwaRefAttachment
in class AttachmentMarshaller
public void setXOPPackage(boolean xop)
public boolean isXOPPackage()
isXOPPackage
in class AttachmentMarshaller
Apache CXF