Class AttachmentRequestEnricher
java.lang.Object
org.mule.soap.internal.generator.attachment.AttachmentRequestEnricher
- Direct Known Subclasses:
MtomRequestEnricher,SoapAttachmentRequestEnricher
Abstract implementation for a request enricher that adds a node for each sent attachment to the incoming SOAP request with all
the information required to send the attachments using the SOAP protocol.
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenrichRequest(String operation, InputStream body, String encoding, Map<String, SoapAttachment> attachments) protected abstract voidwriteAttachmentContent(XMLEventWriter xmlEventWriter, String attachmentName, SoapAttachment soapAttachment)
-
Constructor Details
-
AttachmentRequestEnricher
public AttachmentRequestEnricher()
-
-
Method Details
-
enrichRequest
public XMLStreamReader enrichRequest(String operation, InputStream body, String encoding, Map<String, SoapAttachment> attachments) throws XMLStreamException- Parameters:
body- the XML SOAP body provided by the user.attachments- the attachments to upload.- Throws:
XMLStreamException
-
writeAttachmentContent
protected abstract void writeAttachmentContent(XMLEventWriter xmlEventWriter, String attachmentName, SoapAttachment soapAttachment) throws XMLStreamException - Throws:
XMLStreamException
-