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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAXBAttachmentMarshaller
public JAXBAttachmentMarshaller(Message message,
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(DataHandler dh,
String cid)
- Inform the context that an Attachment (DataHandler, CID) is written.
- Overrides:
addDataHandler
in class JAXBAttachmentMarshaller
- Parameters:
dh
- cid
-
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.