org.apache.axis2.json
Class JSONOMBuilder

java.lang.Object
  extended by org.apache.axis2.json.JSONOMBuilder
All Implemented Interfaces:
Builder
Direct Known Subclasses:
JSONBadgerfishOMBuilder

public class JSONOMBuilder
extends java.lang.Object
implements Builder

Makes the OMSourcedElementImpl object with the JSONDataSource inside.


Constructor Summary
JSONOMBuilder()
           
 
Method Summary
protected  JSONDataSource getDataSource(java.io.InputStream jsonInputStream, java.lang.String prefix, java.lang.String localName)
           
 org.apache.axiom.om.OMElement processDocument(java.io.InputStream inputStream, java.lang.String contentType, MessageContext messageContext)
          gives the OMSourcedElementImpl 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

JSONOMBuilder

public JSONOMBuilder()
Method Detail

processDocument

public org.apache.axiom.om.OMElement processDocument(java.io.InputStream inputStream,
                                                     java.lang.String contentType,
                                                     MessageContext messageContext)
                                              throws AxisFault
gives the OMSourcedElementImpl 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:
OMSourcedElementImpl with JSONDataSource inside
Throws:
AxisFault

getDataSource

protected JSONDataSource getDataSource(java.io.InputStream jsonInputStream,
                                       java.lang.String prefix,
                                       java.lang.String localName)


Copyright © 2007 Apache Web Services Project. All Rights Reserved.