public interface JsonRpcService extends Service
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME
TurbineJsonRpcService.
|
Modifier and Type | Method and Description |
---|---|
void |
clearBridge(HttpSession session)
Remove the
JSONRPCBridge from the session |
org.jabsorb.JSONRPCBridge |
getBridge(HttpSession session)
Get the
JSONRPCBridge from the session |
Object |
processCall(CharArrayWriter cdata,
org.jabsorb.JSONRPCBridge json_bridge,
HttpServletRequest request)
Process a JSON RPC call
|
void |
registerObject(HttpSession session,
String key,
Object value)
Register an object with the
JSONRPCBridge in a given session |
void |
registerObjectGlobal(String key,
Object value)
Register an object with the
JSONRPCBridge globally |
getConfiguration, getName, getProperties, setName, setServiceBroker
static final String SERVICE_NAME
Object processCall(CharArrayWriter cdata, org.jabsorb.JSONRPCBridge json_bridge, HttpServletRequest request)
cdata
- the JSON datajson_bridge
- the JSONRPCBridge
objectrequest
- the requestvoid 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 registervoid registerObjectGlobal(String key, Object value)
JSONRPCBridge
globallykey
- the name of the object in the sessionvalue
- the object to registerorg.jabsorb.JSONRPCBridge getBridge(HttpSession session)
JSONRPCBridge
from the sessionsession
- the sessionJSONRPCBridge
instancevoid clearBridge(HttpSession session)
JSONRPCBridge
from the sessionsession
- the sessionCopyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.