Apache CXF API

org.apache.cxf.jaxb.attachment
Class JAXBAttachmentMarshaller

java.lang.Object
  extended by javax.xml.bind.attachment.AttachmentMarshaller
      extended by org.apache.cxf.jaxb.attachment.JAXBAttachmentMarshaller

public class JAXBAttachmentMarshaller
extends AttachmentMarshaller


Constructor Summary
JAXBAttachmentMarshaller(Collection<Attachment> attachments, Integer mtomThreshold)
           
 
Method Summary
 String addMtomAttachment(byte[] data, int offset, int length, String mimeType, String elementNS, String elementLocalName)
           
 String addMtomAttachment(DataHandler handler, String elementNS, String elementLocalName)
           
 String addSwaRefAttachment(DataHandler handler)
           
 QName getLastMTOMElementName()
           
 boolean isXOPPackage()
           
 void setXOPPackage(boolean xop)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBAttachmentMarshaller

public JAXBAttachmentMarshaller(Collection<Attachment> attachments,
                                Integer mtomThreshold)
Method Detail

getLastMTOMElementName

public QName getLastMTOMElementName()

addMtomAttachment

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

addMtomAttachment

public String addMtomAttachment(DataHandler handler,
                                String elementNS,
                                String elementLocalName)
Specified by:
addMtomAttachment in class AttachmentMarshaller

addSwaRefAttachment

public String addSwaRefAttachment(DataHandler handler)
Specified by:
addSwaRefAttachment in class AttachmentMarshaller

setXOPPackage

public void setXOPPackage(boolean xop)

isXOPPackage

public boolean isXOPPackage()
Overrides:
isXOPPackage in class AttachmentMarshaller

Apache CXF API

Apache CXF