|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.xml.bind.attachment.AttachmentMarshaller org.apache.axis2.datasource.jaxb.JAXBAttachmentMarshaller
public class JAXBAttachmentMarshaller
An implementation of the JAXB AttachmentMarshaller that is used to handle binary data from JAXB and create populate the appropriate constructs on the MessageContext
Constructor Summary | |
---|---|
JAXBAttachmentMarshaller(MessageContext msgContext,
javax.xml.stream.XMLStreamWriter writer)
Construct the JAXBAttachmentMarshaller that has access to the MessageContext |
Method Summary | |
---|---|
void |
addDataHandler(javax.activation.DataHandler dh,
java.lang.String cid)
Inform the context that an Attachment (DataHandler, CID) is written. |
java.lang.String |
addMtomAttachment(byte[] data,
int offset,
int length,
java.lang.String mimeType,
java.lang.String namespace,
java.lang.String localPart)
|
java.lang.String |
addMtomAttachment(javax.activation.DataHandler data,
java.lang.String namespace,
java.lang.String localPart)
|
java.lang.String |
addSwaRefAttachment(javax.activation.DataHandler data)
|
boolean |
isMTOMEnabled()
|
boolean |
isXOPPackage()
Override isXOPPackaget to calculate the isXOPPackage setting |
void |
setDoingSWA()
Indicate on the context that SWA attachments are encountered |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JAXBAttachmentMarshaller(MessageContext msgContext, javax.xml.stream.XMLStreamWriter writer)
msgContext
- writer
- Method Detail |
---|
public boolean isXOPPackage()
isXOPPackage
in class javax.xml.bind.attachment.AttachmentMarshaller
public java.lang.String addMtomAttachment(byte[] data, int offset, int length, java.lang.String mimeType, java.lang.String namespace, java.lang.String localPart)
addMtomAttachment
in class javax.xml.bind.attachment.AttachmentMarshaller
public java.lang.String addMtomAttachment(javax.activation.DataHandler data, java.lang.String namespace, java.lang.String localPart)
addMtomAttachment
in class javax.xml.bind.attachment.AttachmentMarshaller
public java.lang.String addSwaRefAttachment(javax.activation.DataHandler data)
addSwaRefAttachment
in class javax.xml.bind.attachment.AttachmentMarshaller
public boolean isMTOMEnabled()
public void setDoingSWA()
public void addDataHandler(javax.activation.DataHandler dh, java.lang.String cid)
dh
- cid
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |