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 MessageFormatter
AxisFault
public void writeTo(MessageContext outMsgCtxt, org.apache.axiom.om.OMOutputFormat omOutputFormat, OutputStream outputStream, boolean b) throws AxisFault
MessageFormatter
writeTo
in interface MessageFormatter
b
- :
do not consume the OM when this is set..AxisFault
public String getContentType(MessageContext outMsgCtxt, org.apache.axiom.om.OMOutputFormat omOutputFormat, String s)
MessageFormatter
getContentType
in interface MessageFormatter
public URL getTargetAddress(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat omOutputFormat, URL url) throws AxisFault
MessageFormatter
getTargetAddress
in interface MessageFormatter
AxisFault
public String formatSOAPAction(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat omOutputFormat, String s)
formatSOAPAction
in interface MessageFormatter
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.