public abstract class TurbineJsonRpc extends Object
JsonRpcService.| Constructor and Description |
|---|
TurbineJsonRpc() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearBridge(HttpSession session)
Remove the
JSONRPCBridge from the session |
static org.jabsorb.JSONRPCBridge |
getBridge(HttpSession session)
Get the
JSONRPCBridge from the session |
static JsonRpcService |
getService()
Returns system's configured implementation of
JsonRpcService. |
static Object |
processCall(CharArrayWriter cdata,
org.jabsorb.JSONRPCBridge json_bridge,
HttpServletRequest request)
Process a JSON RPC call
|
static void |
registerObject(HttpSession session,
String key,
Object value)
Register an object with the
JSONRPCBridge in a given session |
static void |
registerObjectGlobal(String key,
Object value)
Register an object with the
JSONRPCBridge globally |
public TurbineJsonRpc()
public static JsonRpcService getService()
JsonRpcService.JsonRpcServicepublic static Object processCall(CharArrayWriter cdata, org.jabsorb.JSONRPCBridge json_bridge, HttpServletRequest request)
cdata - the JSON datajson_bridge - the JSONRPCBridge objectrequest - the requestpublic static void registerObject(HttpSession session, String key, Object value)
JSONRPCBridge in a given sessionsession - the sessionkey - the name of the object in the sessionvalue - the object to registerpublic static void registerObjectGlobal(String key, Object value)
JSONRPCBridge globallykey - the name of the object in the sessionvalue - the object to registerpublic static org.jabsorb.JSONRPCBridge getBridge(HttpSession session)
JSONRPCBridge from the sessionsession - the sessionJSONRPCBridge instancepublic static void clearBridge(HttpSession session)
JSONRPCBridge from the sessionsession - the sessionCopyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.