org.apache.axis2.json
Class JSONBadgerfishOMBuilder

java.lang.Object
  extended by org.apache.axis2.json.AbstractJSONOMBuilder
      extended by org.apache.axis2.json.JSONBadgerfishOMBuilder
All Implemented Interfaces:
Builder

public class JSONBadgerfishOMBuilder
extends AbstractJSONOMBuilder

Message builder for "Badgerfish" convention. DataSource used here is JSONBadgerfishDataSource which is specific for "Badgerfish"


Constructor Summary
JSONBadgerfishOMBuilder()
           
 
Method Summary
protected  AbstractJSONDataSource getDataSource(java.io.Reader jsonReader, java.lang.String prefix, java.lang.String localName)
           
 java.lang.String getDefaultJSONString(MessageContext msgCtx, java.lang.String localName)
          This method returns a default JSON string whenever a GET request, which doesn't contain any parameter, is served.
 
Methods inherited from class org.apache.axis2.json.AbstractJSONOMBuilder
processDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONBadgerfishOMBuilder

public JSONBadgerfishOMBuilder()
Method Detail

getDataSource

protected AbstractJSONDataSource getDataSource(java.io.Reader jsonReader,
                                               java.lang.String prefix,
                                               java.lang.String localName)
Specified by:
getDataSource in class AbstractJSONOMBuilder

getDefaultJSONString

public java.lang.String getDefaultJSONString(MessageContext msgCtx,
                                             java.lang.String localName)
                                      throws AxisFault
Description copied from class: AbstractJSONOMBuilder
This method returns a default JSON string whenever a GET request, which doesn't contain any parameter, is served.

Specified by:
getDefaultJSONString in class AbstractJSONOMBuilder
Parameters:
msgCtx - MessageContext associated with the current request
localName - Name of the first element
Returns:
Default JSON string compliant with respective JSON To XML mapping type
Throws:
AxisFault - Is thrown when an unrecognized content type is received


Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.