Package org.apache.axis2.json
Class JSONOMBuilder
java.lang.Object
org.apache.axis2.json.AbstractJSONOMBuilder
org.apache.axis2.json.JSONOMBuilder
- All Implemented Interfaces:
Builder
Makes the OMSourcedElementImpl object with the JSONDataSource inside.
-
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
-
JSONOMBuilder
public JSONOMBuilder()
-
-
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
-