public final class JsonStreamFormatter
extends java.lang.Object
implements org.apache.axis2.transport.MessageFormatter
Constructor and Description |
---|
JsonStreamFormatter() |
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 format) |
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 format,
java.net.URL targetURL) |
static void |
toJson(org.apache.axis2.context.MessageContext messageContext,
java.io.OutputStream out)
|
void |
writeTo(org.apache.axis2.context.MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
java.io.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.MessageFormatter
org.apache.axis2.AxisFault
public 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.MessageFormatter
public void writeTo(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, java.io.OutputStream out, 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.axis2.context.MessageContext messageContext, java.io.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.AxisFault
public java.net.URL getTargetAddress(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, java.net.URL targetURL) throws org.apache.axis2.AxisFault
getTargetAddress
in interface org.apache.axis2.transport.MessageFormatter
org.apache.axis2.AxisFault
public 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.MessageFormatter
Copyright © 2005-2021 Apache Software Foundation. All Rights Reserved.