org.apache.axis2.jaxws.message.attachments
Class JAXBAttachmentMarshaller
java.lang.Object
javax.xml.bind.attachment.AttachmentMarshaller
org.apache.axis2.datasource.jaxb.JAXBAttachmentMarshaller
org.apache.axis2.jaxws.message.attachments.JAXBAttachmentMarshaller
public class JAXBAttachmentMarshaller
- extends JAXBAttachmentMarshaller
An implementation of the JAXB AttachmentMarshaller that is used to handle binary data from JAXB
and create populate the appropriate constructs within the JAX-WS Message Model.
Method Summary |
void |
addDataHandler(javax.activation.DataHandler dh,
java.lang.String cid)
Inform the context that an Attachment (DataHandler, CID) is written. |
boolean |
isMTOMEnabled()
|
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 |
JAXBAttachmentMarshaller
public JAXBAttachmentMarshaller(Message message,
javax.xml.stream.XMLStreamWriter writer)
isMTOMEnabled
public boolean isMTOMEnabled()
- Overrides:
isMTOMEnabled
in class JAXBAttachmentMarshaller
- Returns:
- if MTOM enabled calculated from the context information
setDoingSWA
public void setDoingSWA()
- Indicate on the context that SWA attachments are encountered
- Overrides:
setDoingSWA
in class JAXBAttachmentMarshaller
addDataHandler
public void addDataHandler(javax.activation.DataHandler dh,
java.lang.String cid)
- Inform the context that an Attachment (DataHandler, CID) is written.
- Overrides:
addDataHandler
in class JAXBAttachmentMarshaller
- Parameters:
dh
- cid
-
Copyright © 2007 Apache Web Services Project. All Rights Reserved.