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