Class MtomRequestEnricher
java.lang.Object
org.mule.soap.internal.generator.attachment.AttachmentRequestEnricher
org.mule.soap.internal.generator.attachment.MtomRequestEnricher
AttachmentRequestEnricher implementation for clients that works with MTOM.- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidwriteAttachmentContent(XMLEventWriter xmlEventWriter, String attachmentName, SoapAttachment soapAttachment) Methods inherited from class org.mule.soap.internal.generator.attachment.AttachmentRequestEnricher
enrichRequest
-
Constructor Details
-
MtomRequestEnricher
public MtomRequestEnricher()
-
-
Method Details
-
writeAttachmentContent
protected void writeAttachmentContent(XMLEventWriter xmlEventWriter, String attachmentName, SoapAttachment soapAttachment) throws XMLStreamException Creates the XOP element to the attachment node this way the attachments gets tracked with its CID (content id) when it's sent in the multipart request.
Basically creates this content
<xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:attachmentContentId"/>and uses the attachmentContentId to identify the attachment in the multipart.- Specified by:
writeAttachmentContentin classAttachmentRequestEnricher- Throws:
XMLStreamException
-