org.apache.axis2.json
Class JSONOMBuilder

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

public class JSONOMBuilder
extends AbstractJSONOMBuilder

Makes the OMSourcedElementImpl object with the JSONDataSource inside.


Constructor Summary
JSONOMBuilder()
           
 
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

JSONOMBuilder

public JSONOMBuilder()
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.