be.ehealth.technicalconnector.utils.impl
Class AttachmentMarshallerImpl
java.lang.Object
javax.xml.bind.attachment.AttachmentMarshaller
be.ehealth.technicalconnector.utils.impl.AttachmentMarshallerImpl
public class AttachmentMarshallerImpl
- extends AttachmentMarshaller
JAXB Marshaller that handles the attachments. Implementation of AttachmentMarshaller
AttachmentMarshallerImpl
public AttachmentMarshallerImpl(boolean xop)
- Parameters:
xop
- boolean the determine is the marshaller must handle xop (XML-binary Optimized Packaging).
AttachmentMarshallerImpl
public AttachmentMarshallerImpl(boolean xop,
int threshold)
- Parameters:
xop
- boolean the determine is the marshaller must handle xop (XML-binary Optimized Packaging).threshold
- if XML-binary Optimized Packaging is used
getDataHandlerMap
public Map<String,DataHandler> getDataHandlerMap()
addMtomAttachment
public String addMtomAttachment(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(DataHandler data)
- Specified by:
addSwaRefAttachment
in class AttachmentMarshaller
isXOPPackage
public boolean isXOPPackage()
- Overrides:
isXOPPackage
in class AttachmentMarshaller
Connector Packaging TECHNICAL 3.21.2 API
Copyright © {inceptionYear}-2021 eHealth. All Rights Reserved.