|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.json.JSONMessageFormatter org.apache.axis2.json.JSONBadgerfishMessageFormatter
public class JSONBadgerfishMessageFormatter
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
Constructor Summary | |
---|---|
JSONBadgerfishMessageFormatter()
|
Method Summary | |
---|---|
protected javax.xml.stream.XMLStreamWriter |
getJSONWriter(java.io.OutputStream outStream)
|
protected java.lang.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. |
Methods inherited from class org.apache.axis2.json.JSONMessageFormatter |
---|
formatSOAPAction, getBytes, getContentType, getTargetAddress, writeTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSONBadgerfishMessageFormatter()
Method Detail |
---|
protected javax.xml.stream.XMLStreamWriter getJSONWriter(java.io.OutputStream outStream)
getJSONWriter
in class JSONMessageFormatter
protected java.lang.String getStringToWrite(org.apache.axiom.om.OMDataSource dataSource)
getStringToWrite
in class JSONMessageFormatter
dataSource
- data source to be checked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |