org.apache.turbine.services.jsonrpc
Class TurbineJsonRpcService
java.lang.Object
org.apache.turbine.services.BaseInitable
org.apache.turbine.services.BaseService
org.apache.turbine.services.TurbineBaseService
org.apache.turbine.services.jsonrpc.TurbineJsonRpcService
- All Implemented Interfaces:
- Initable, JsonRpcService, Service
- public class TurbineJsonRpcService
- extends TurbineBaseService
- implements JsonRpcService
This is a service that will respond to JSON-RPC calls.
- Version:
- $Id$
- Author:
- Scott Eade
Field Summary |
static java.lang.String |
JSON_BRIDGE_KEY
The key used to store the bridge in the session. |
Method Summary |
void |
clearBridge(javax.servlet.http.HttpSession session)
|
com.metaparadigm.jsonrpc.JSONRPCBridge |
getBridge(javax.servlet.http.HttpSession session)
|
java.lang.Object |
processCall(java.io.CharArrayWriter cdata,
com.metaparadigm.jsonrpc.JSONRPCBridge json_bridge,
javax.servlet.http.HttpServletRequest request)
|
void |
registerObject(javax.servlet.http.HttpSession session,
java.lang.String key,
java.lang.Object value)
|
void |
registerObjectGlobal(java.lang.String key,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSON_BRIDGE_KEY
public static final java.lang.String JSON_BRIDGE_KEY
- The key used to store the bridge in the session.
- See Also:
- Constant Field Values
TurbineJsonRpcService
public TurbineJsonRpcService()
processCall
public java.lang.Object processCall(java.io.CharArrayWriter cdata,
com.metaparadigm.jsonrpc.JSONRPCBridge json_bridge,
javax.servlet.http.HttpServletRequest request)
- Specified by:
processCall
in interface JsonRpcService
registerObjectGlobal
public void registerObjectGlobal(java.lang.String key,
java.lang.Object value)
- Specified by:
registerObjectGlobal
in interface JsonRpcService
registerObject
public void registerObject(javax.servlet.http.HttpSession session,
java.lang.String key,
java.lang.Object value)
- Specified by:
registerObject
in interface JsonRpcService
getBridge
public com.metaparadigm.jsonrpc.JSONRPCBridge getBridge(javax.servlet.http.HttpSession session)
- Specified by:
getBridge
in interface JsonRpcService
clearBridge
public void clearBridge(javax.servlet.http.HttpSession session)
- Specified by:
clearBridge
in interface JsonRpcService
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.