public interface MessageFormatter
Modifier and Type | Method and Description |
---|---|
String |
formatSOAPAction(MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
String soapAction) |
String |
getContentType(MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
String soapAction)
Different message formats can set their own content types
Eg: JSONFormatter can set the content type as application/json
|
URL |
getTargetAddress(MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
URL targetURL)
Some message formats may want to alter the target url.
|
void |
writeTo(MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
OutputStream outputStream,
boolean preserve)
To support deffered writing transports as in http chunking..
|
void writeTo(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, OutputStream outputStream, boolean preserve) throws AxisFault
outputStream
- preserve
- :
do not consume the OM when this is set..AxisFault
String getContentType(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, String soapAction)
messageContext
- format
- soapAction
- URL getTargetAddress(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, URL targetURL) throws AxisFault
AxisFault
String formatSOAPAction(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, String soapAction)
Copyright © The Apache Software Foundation. All Rights Reserved.