Package org.apache.axis2.json
Class JSONBadgerfishOMBuilder
java.lang.Object
org.apache.axis2.json.AbstractJSONOMBuilder
org.apache.axis2.json.JSONBadgerfishOMBuilder
- All Implemented Interfaces:
Builder
Message builder for "Badgerfish" convention. DataSource used here is
JSONBadgerfishDataSource which is specific for "Badgerfish"
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractJSONDataSourcegetDataSource(Reader jsonReader, String prefix, String localName) getDefaultJSONString(MessageContext msgCtx, 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
-
Constructor Details
-
JSONBadgerfishOMBuilder
public JSONBadgerfishOMBuilder()
-
-
Method Details
-
getDataSource
- Specified by:
getDataSourcein classAbstractJSONOMBuilder
-
getDefaultJSONString
Description copied from class:AbstractJSONOMBuilderThis method returns a default JSON string whenever a GET request, which doesn't contain any parameter, is served.- Specified by:
getDefaultJSONStringin classAbstractJSONOMBuilder- 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
-