public class JsonFormatter extends Object implements MessageFormatter
| Constructor and Description |
|---|
JsonFormatter() |
| Modifier and Type | Method and Description |
|---|---|
String |
formatSOAPAction(MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat omOutputFormat,
String s) |
byte[] |
getBytes(MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat omOutputFormat) |
String |
getContentType(MessageContext outMsgCtxt,
org.apache.axiom.om.OMOutputFormat omOutputFormat,
String s)
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 omOutputFormat,
URL url)
Some message formats may want to alter the target url.
|
void |
writeTo(MessageContext outMsgCtxt,
org.apache.axiom.om.OMOutputFormat omOutputFormat,
OutputStream outputStream,
boolean b)
To support deffered writing transports as in http chunking..
|
public byte[] getBytes(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat omOutputFormat) throws AxisFault
getBytes in interface MessageFormatterAxisFaultpublic void writeTo(MessageContext outMsgCtxt, org.apache.axiom.om.OMOutputFormat omOutputFormat, OutputStream outputStream, boolean b) throws AxisFault
MessageFormatterwriteTo in interface MessageFormatterb - :
do not consume the OM when this is set..AxisFaultpublic String getContentType(MessageContext outMsgCtxt, org.apache.axiom.om.OMOutputFormat omOutputFormat, String s)
MessageFormattergetContentType in interface MessageFormatterpublic URL getTargetAddress(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat omOutputFormat, URL url) throws AxisFault
MessageFormattergetTargetAddress in interface MessageFormatterAxisFaultpublic String formatSOAPAction(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat omOutputFormat, String s)
formatSOAPAction in interface MessageFormatterCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.