public abstract class AbstractJSONOMBuilder extends java.lang.Object implements Builder
| Constructor and Description |
|---|
AbstractJSONOMBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract AbstractJSONDataSource |
getDataSource(java.io.Reader jsonReader,
java.lang.String prefix,
java.lang.String localName) |
abstract java.lang.String |
getDefaultJSONString(MessageContext msgCtx,
java.lang.String localName)
This method returns a default JSON string whenever a GET request, which doesn't contain any
parameter, is served.
|
org.apache.axiom.om.OMElement |
processDocument(java.io.InputStream inputStream,
java.lang.String contentType,
MessageContext messageContext)
gives the OMSourcedElementImpl using the incoming JSON stream
|
public org.apache.axiom.om.OMElement processDocument(java.io.InputStream inputStream,
java.lang.String contentType,
MessageContext messageContext)
throws AxisFault
processDocument in interface BuilderinputStream - - incoming message as an input streamcontentType - - content type of the message (eg: application/json)messageContext - - inflow message contextAxisFaultprotected abstract AbstractJSONDataSource getDataSource(java.io.Reader jsonReader, java.lang.String prefix, java.lang.String localName)
public abstract java.lang.String getDefaultJSONString(MessageContext msgCtx, java.lang.String localName) throws AxisFault
msgCtx - MessageContext associated with the current requestlocalName - Name of the first elementAxisFault - Is thrown when an unrecognized content type is receivedCopyright © 2004-2025 The Apache Software Foundation. All Rights Reserved.