public final class JsonStreamFormatter extends Object implements org.apache.axis2.transport.MessageFormatter
| Constructor and Description |
|---|
JsonStreamFormatter() |
| Modifier and Type | Method and Description |
|---|---|
String |
formatSOAPAction(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat omOutputFormat,
String s) |
byte[] |
getBytes(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format) |
String |
getContentType(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
String soapActionString) |
URL |
getTargetAddress(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
URL targetURL) |
static void |
toJson(org.apache.axis2.context.MessageContext messageContext,
OutputStream out)
|
void |
writeTo(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
OutputStream out,
boolean preserve) |
public byte[] getBytes(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format)
throws org.apache.axis2.AxisFault
getBytes in interface org.apache.axis2.transport.MessageFormatterorg.apache.axis2.AxisFaultpublic String getContentType(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, String soapActionString)
getContentType in interface org.apache.axis2.transport.MessageFormatterpublic void writeTo(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
OutputStream out,
boolean preserve)
throws org.apache.axis2.AxisFault
writeTo in interface org.apache.axis2.transport.MessageFormatterorg.apache.axis2.AxisFaultpublic static void toJson(org.apache.axis2.context.MessageContext messageContext,
OutputStream out)
throws org.apache.axis2.AxisFault
messageContext - Axis2 Message context that holds the JSON/XML payload.out - Output stream to which the payload(JSON) must be written.org.apache.axis2.AxisFaultpublic URL getTargetAddress(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, URL targetURL) throws org.apache.axis2.AxisFault
getTargetAddress in interface org.apache.axis2.transport.MessageFormatterorg.apache.axis2.AxisFaultCopyright © 2005–2019 Apache Software Foundation. All rights reserved.