Class NonReadingAttachmentMarshaller
java.lang.Object
javax.xml.bind.attachment.AttachmentMarshaller
org.openehealth.ipf.commons.ihe.ws.cxf.NonReadingAttachmentMarshaller
public class NonReadingAttachmentMarshaller
extends javax.xml.bind.attachment.AttachmentMarshaller
An attachment marshaller implementation which does not read any data
from the provided data handlers in order to keep all streams usable.
- Author:
- Dmytro Rud
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddMtomAttachment
(byte[] data, int offset, int length, String mimeType, String elementNamespace, String elementLocalName) addMtomAttachment
(javax.activation.DataHandler data, String elementNamespace, String elementLocalName) addSwaRefAttachment
(javax.activation.DataHandler data) boolean
-
Constructor Details
-
NonReadingAttachmentMarshaller
public NonReadingAttachmentMarshaller()
-
-
Method Details
-
isXOPPackage
public boolean isXOPPackage()- Overrides:
isXOPPackage
in classjavax.xml.bind.attachment.AttachmentMarshaller
-
addMtomAttachment
public String addMtomAttachment(javax.activation.DataHandler data, String elementNamespace, String elementLocalName) - Specified by:
addMtomAttachment
in classjavax.xml.bind.attachment.AttachmentMarshaller
-
addMtomAttachment
public String addMtomAttachment(byte[] data, int offset, int length, String mimeType, String elementNamespace, String elementLocalName) - Specified by:
addMtomAttachment
in classjavax.xml.bind.attachment.AttachmentMarshaller
-
addSwaRefAttachment
- Specified by:
addSwaRefAttachment
in classjavax.xml.bind.attachment.AttachmentMarshaller
-