com.sun.xml.ws.message.jaxb
Class AttachmentMarshallerImpl

java.lang.Object
  extended by javax.xml.bind.attachment.AttachmentMarshaller
      extended by com.sun.xml.ws.message.jaxb.AttachmentMarshallerImpl

final class AttachmentMarshallerImpl
extends AttachmentMarshaller

Implementation of AttachmentMarshaller, its used from JAXBMessage to marshall swaref type

See Also:
JAXBMessage

Constructor Summary
AttachmentMarshallerImpl(AttachmentSetImpl attachemnts)
           
 
Method Summary
 String addMtomAttachment(byte[] data, int offset, int length, String mimeType, String elementNamespace, String elementLocalName)
           
 String addMtomAttachment(javax.activation.DataHandler data, String elementNamespace, String elementLocalName)
           
 String addSwaRefAttachment(javax.activation.DataHandler data)
           
(package private)  void cleanup()
          Release a reference to user objects to avoid keeping it in memory.
 
Methods inherited from class javax.xml.bind.attachment.AttachmentMarshaller
isXOPPackage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentMarshallerImpl

public AttachmentMarshallerImpl(AttachmentSetImpl attachemnts)
Method Detail

cleanup

void cleanup()
Release a reference to user objects to avoid keeping it in memory.


addMtomAttachment

public String addMtomAttachment(javax.activation.DataHandler data,
                                String elementNamespace,
                                String elementLocalName)
Specified by:
addMtomAttachment in class AttachmentMarshaller

addMtomAttachment

public String addMtomAttachment(byte[] data,
                                int offset,
                                int length,
                                String mimeType,
                                String elementNamespace,
                                String elementLocalName)
Specified by:
addMtomAttachment in class AttachmentMarshaller

addSwaRefAttachment

public String addSwaRefAttachment(javax.activation.DataHandler data)
Specified by:
addSwaRefAttachment in class AttachmentMarshaller