org.apache.axis2.jaxws.message.attachments
Class JAXBAttachmentMarshaller

java.lang.Object
  extended by javax.xml.bind.attachment.AttachmentMarshaller
      extended by org.apache.axis2.datasource.jaxb.JAXBAttachmentMarshaller
          extended by 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.


Constructor Summary
JAXBAttachmentMarshaller(Message message, javax.xml.stream.XMLStreamWriter writer)
           
 
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 org.apache.axis2.datasource.jaxb.JAXBAttachmentMarshaller
addMtomAttachment, addMtomAttachment, addSwaRefAttachment, isXOPPackage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBAttachmentMarshaller

public JAXBAttachmentMarshaller(Message message,
                                javax.xml.stream.XMLStreamWriter writer)
Method Detail

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.