Apache CXF API

org.apache.cxf.jaxrs.provider
Class JAXBAttachmentMarshaller

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

public class JAXBAttachmentMarshaller
extends javax.xml.bind.attachment.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(javax.activation.DataHandler handler, String elementNS, String elementLocalName)
           
 String addSwaRefAttachment(javax.activation.DataHandler handler)
           
 boolean isXOPPackage()
           
 
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

addMtomAttachment

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

addMtomAttachment

public String addMtomAttachment(javax.activation.DataHandler handler,
                                String elementNS,
                                String elementLocalName)
Specified by:
addMtomAttachment in class javax.xml.bind.attachment.AttachmentMarshaller

addSwaRefAttachment

public String addSwaRefAttachment(javax.activation.DataHandler handler)
Specified by:
addSwaRefAttachment in class javax.xml.bind.attachment.AttachmentMarshaller

isXOPPackage

public boolean isXOPPackage()
Overrides:
isXOPPackage in class javax.xml.bind.attachment.AttachmentMarshaller

Apache CXF API

Apache CXF