org.apache.axis2.json
Class AbstractJSONOMBuilder

java.lang.Object
  extended by 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
AbstractJSONOMBuilder()
           
 
Method Summary
protected abstract  AbstractJSONDataSource getDataSource(Reader jsonReader, String prefix, String localName)
           
 org.apache.axiom.om.OMElement processDocument(InputStream inputStream, String contentType, MessageContext messageContext)
          gives the OMSourcedElement using the incoming JSON stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJSONOMBuilder

public AbstractJSONOMBuilder()
Method Detail

processDocument

public org.apache.axiom.om.OMElement processDocument(InputStream inputStream,
                                                     String contentType,
                                                     MessageContext messageContext)
                                              throws AxisFault
gives the OMSourcedElement using the incoming JSON stream

Specified by:
processDocument in interface Builder
Parameters:
inputStream - - incoming message as an input stream
contentType - - 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,
                                                        String prefix,
                                                        String localName)


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.