org.apache.axis2.json
Class JSONBadgerfishMessageFormatter
java.lang.Object
org.apache.axis2.json.AbstractJSONMessageFormatter
org.apache.axis2.json.JSONBadgerfishMessageFormatter
- All Implemented Interfaces:
- MessageFormatter
public class JSONBadgerfishMessageFormatter
- extends AbstractJSONMessageFormatter
This JSONBadgerfishMessageFormatter is the formatter for "Badgerfish" formatted JSON in Axis2.
Eg: <out><in>mapped JSON</in></out> is converted to...
{"out":{"in":{"$":"mapped JSON"}}} This can be used when you want to send messages with
namespaces with JSON
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSONBadgerfishMessageFormatter
public JSONBadgerfishMessageFormatter()
getJSONWriter
protected XMLStreamWriter getJSONWriter(Writer writer)
- Specified by:
getJSONWriter
in class AbstractJSONMessageFormatter
getStringToWrite
protected String getStringToWrite(org.apache.axiom.om.OMDataSource dataSource)
- If the data source is a "Badgerfish" formatted data source, gives the JSON string by directly
taking from the data source.
- Specified by:
getStringToWrite
in class AbstractJSONMessageFormatter
- Parameters:
dataSource
- data source to be checked
- Returns:
- the JSON string to write
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.