public final class JsonFormatter extends Object implements org.apache.axis2.transport.MessageFormatter
Constructor and Description |
---|
JsonFormatter() |
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 omOutputFormat) |
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 omOutputFormat,
URL url) |
static void |
toJson(org.apache.axiom.om.OMElement element,
OutputStream outputStream)
|
void |
writeTo(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat omOutputFormat,
OutputStream outputStream,
boolean preserve) |
public byte[] getBytes(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat omOutputFormat) throws org.apache.axis2.AxisFault
getBytes
in interface org.apache.axis2.transport.MessageFormatter
org.apache.axis2.AxisFault
public void writeTo(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat omOutputFormat, OutputStream outputStream, boolean preserve) throws org.apache.axis2.AxisFault
writeTo
in interface org.apache.axis2.transport.MessageFormatter
org.apache.axis2.AxisFault
public static void toJson(org.apache.axiom.om.OMElement element, OutputStream outputStream) throws org.apache.axis2.AxisFault
element
- XML elementoutputStream
- Output Stream to write the converted JSON representation.org.apache.axis2.AxisFault
public String getContentType(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, String soapActionString)
getContentType
in interface org.apache.axis2.transport.MessageFormatter
public URL getTargetAddress(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat omOutputFormat, URL url) throws org.apache.axis2.AxisFault
getTargetAddress
in interface org.apache.axis2.transport.MessageFormatter
org.apache.axis2.AxisFault
Copyright © 2005–2018 Apache Software Foundation. All rights reserved.