Package org.apache.axis2.json
Class AbstractJSONOMBuilder
- java.lang.Object
-
- org.apache.axis2.json.AbstractJSONOMBuilder
-
- All Implemented Interfaces:
Builder
- Direct Known Subclasses:
JSONBadgerfishOMBuilder
,JSONOMBuilder
public abstract class AbstractJSONOMBuilder extends Object implements Builder
Makes the OMSourcedElement object with the JSONDataSource inside.
-
-
Constructor Summary
Constructors Constructor Description AbstractJSONOMBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract AbstractJSONDataSource
getDataSource(Reader jsonReader, MessageContext messageContext)
OMElement
processDocument(InputStream inputStream, String contentType, MessageContext messageContext)
gives the OMSourcedElement using the incoming JSON stream
-
-
-
Method Detail
-
processDocument
public OMElement processDocument(InputStream inputStream, String contentType, MessageContext messageContext) throws AxisFault
gives the OMSourcedElement using the incoming JSON stream- Specified by:
processDocument
in interfaceBuilder
- Parameters:
inputStream
- - incoming message as an input streamcontentType
- - content type of the message (eg: application/json)messageContext
- - inflow message context- Returns:
- OMSourcedElement with JSONDataSource inside
- Throws:
AxisFault
-
getDataSource
protected abstract AbstractJSONDataSource getDataSource(Reader jsonReader, MessageContext messageContext)
-
-