public final class JsonFormatter
extends java.lang.Object
implements org.apache.axis2.transport.MessageFormatter
| Constructor and Description |
|---|
JsonFormatter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
formatSOAPAction(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat omOutputFormat,
java.lang.String s) |
byte[] |
getBytes(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat omOutputFormat) |
java.lang.String |
getContentType(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
java.lang.String soapActionString) |
java.net.URL |
getTargetAddress(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat omOutputFormat,
java.net.URL url) |
static void |
toJson(org.apache.axiom.om.OMElement element,
java.io.OutputStream outputStream)
|
void |
writeTo(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat omOutputFormat,
java.io.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.MessageFormatterorg.apache.axis2.AxisFaultpublic void writeTo(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat omOutputFormat,
java.io.OutputStream outputStream,
boolean preserve)
throws org.apache.axis2.AxisFault
writeTo in interface org.apache.axis2.transport.MessageFormatterorg.apache.axis2.AxisFaultpublic static void toJson(org.apache.axiom.om.OMElement element,
java.io.OutputStream outputStream)
throws org.apache.axis2.AxisFault
element - XML elementoutputStream - Output Stream to write the converted JSON representation.org.apache.axis2.AxisFaultpublic java.lang.String getContentType(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
java.lang.String soapActionString)
getContentType in interface org.apache.axis2.transport.MessageFormatterpublic java.net.URL getTargetAddress(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat omOutputFormat,
java.net.URL url)
throws org.apache.axis2.AxisFault
getTargetAddress in interface org.apache.axis2.transport.MessageFormatterorg.apache.axis2.AxisFaultpublic java.lang.String formatSOAPAction(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat omOutputFormat,
java.lang.String s)
formatSOAPAction in interface org.apache.axis2.transport.MessageFormatterCopyright © 2005-2021 Apache Software Foundation. All Rights Reserved.