org.apache.axis2.json
Class JSONBadgerfishOMBuilder
java.lang.Object
org.apache.axis2.json.AbstractJSONOMBuilder
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"
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSONBadgerfishOMBuilder
public JSONBadgerfishOMBuilder()
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 requestlocalName - 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.