public class JAXBAttachmentMarshaller extends AttachmentMarshaller
Constructor and Description |
---|
JAXBAttachmentMarshaller(MessageContext msgContext,
XMLStreamWriter writer)
Construct the JAXBAttachmentMarshaller that has access to the MessageContext
|
Modifier and Type | Method and Description |
---|---|
void |
addDataHandler(DataHandler dh,
String cid)
Inform the context that an Attachment (DataHandler, CID) is written.
|
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 |
isMTOMEnabled() |
boolean |
isXOPPackage()
Override isXOPPackaget to calculate the isXOPPackage setting
|
void |
setDoingSWA()
Indicate on the context that SWA attachments are encountered
|
public JAXBAttachmentMarshaller(MessageContext msgContext, XMLStreamWriter writer)
msgContext
- writer
- public boolean isXOPPackage()
isXOPPackage
in class AttachmentMarshaller
public String addMtomAttachment(byte[] data, int offset, int length, String mimeType, String namespace, String localPart)
addMtomAttachment
in class AttachmentMarshaller
public String addMtomAttachment(DataHandler data, String namespace, String localPart)
addMtomAttachment
in class AttachmentMarshaller
public String addSwaRefAttachment(DataHandler data)
addSwaRefAttachment
in class AttachmentMarshaller
public boolean isMTOMEnabled()
public void setDoingSWA()
public void addDataHandler(DataHandler dh, String cid)
dh
- cid
- Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.