Class JsonStreamFormatter
- java.lang.Object
-
- org.wso2.carbon.integrator.core.json.JsonStreamFormatter
-
- All Implemented Interfaces:
org.apache.axis2.transport.MessageFormatter
public class JsonStreamFormatter extends Object implements org.apache.axis2.transport.MessageFormatter
JsonStream Formatter class for Enterprise integrator
-
-
Constructor Summary
Constructors Constructor Description JsonStreamFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 omOutputFormat, String s)
URL
getTargetAddress(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat omOutputFormat, URL url)
void
writeTo(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat omOutputFormat, OutputStream outputStream, boolean b)
-
-
-
Constructor Detail
-
JsonStreamFormatter
public JsonStreamFormatter() throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InstantiationException, IOException, XMLStreamException
-
-
Method Detail
-
getBytes
public byte[] getBytes(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat omOutputFormat) throws org.apache.axis2.AxisFault
- Specified by:
getBytes
in interfaceorg.apache.axis2.transport.MessageFormatter
- Throws:
org.apache.axis2.AxisFault
-
writeTo
public void writeTo(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat omOutputFormat, OutputStream outputStream, boolean b) throws org.apache.axis2.AxisFault
- Specified by:
writeTo
in interfaceorg.apache.axis2.transport.MessageFormatter
- Throws:
org.apache.axis2.AxisFault
-
getContentType
public String getContentType(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat omOutputFormat, String s)
- Specified by:
getContentType
in interfaceorg.apache.axis2.transport.MessageFormatter
-
getTargetAddress
public URL getTargetAddress(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat omOutputFormat, URL url) throws org.apache.axis2.AxisFault
- Specified by:
getTargetAddress
in interfaceorg.apache.axis2.transport.MessageFormatter
- Throws:
org.apache.axis2.AxisFault
-
-