Interface JsonRpcService
-
- All Known Implementing Classes:
TurbineJsonRpcService
public interface JsonRpcService extends Service
The interface an JsonRpcService implements.- Version:
- $Id$
- Author:
- Scott Eade
-
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_NAME
TurbineJsonRpcService.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearBridge(HttpSession session)
Remove theJSONRPCBridge
from the sessionorg.jabsorb.JSONRPCBridge
getBridge(HttpSession session)
Get theJSONRPCBridge
from the sessionObject
processCall(CharArrayWriter cdata, org.jabsorb.JSONRPCBridge json_bridge, HttpServletRequest request)
Process a JSON RPC callvoid
registerObject(HttpSession session, String key, Object value)
Register an object with theJSONRPCBridge
in a given sessionvoid
registerObjectGlobal(String key, Object value)
Register an object with theJSONRPCBridge
globally-
Methods inherited from interface org.apache.turbine.services.Initable
getInit, init, init, setInitableBroker, shutdown
-
Methods inherited from interface org.apache.turbine.services.Service
getConfiguration, getName, getProperties, setName, setServiceBroker
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
TurbineJsonRpcService.- See Also:
- Constant Field Values
-
-
Method Detail
-
processCall
Object processCall(CharArrayWriter cdata, org.jabsorb.JSONRPCBridge json_bridge, HttpServletRequest request)
Process a JSON RPC call- Parameters:
cdata
- the JSON datajson_bridge
- theJSONRPCBridge
objectrequest
- the request- Returns:
- the return object of the JSON RPC call
-
registerObject
void registerObject(HttpSession session, String key, Object value)
Register an object with theJSONRPCBridge
in a given session- Parameters:
session
- the sessionkey
- the name of the object in the sessionvalue
- the object to register (not null)
-
registerObjectGlobal
void registerObjectGlobal(String key, Object value)
Register an object with theJSONRPCBridge
globally- Parameters:
key
- the name of the object in the sessionvalue
- the object to register (not null)
-
getBridge
org.jabsorb.JSONRPCBridge getBridge(HttpSession session)
Get theJSONRPCBridge
from the session- Parameters:
session
- the session- Returns:
- the
JSONRPCBridge
instance
-
clearBridge
void clearBridge(HttpSession session)
Remove theJSONRPCBridge
from the session- Parameters:
session
- the session
-
-