Class TurbineJsonRpcService

All Implemented Interfaces:
Initable, JsonRpcService, Service

This is a service that will respond to JSON-RPC calls.
Version:
$Id$
Author:
Scott Eade
  • Field Details

  • Constructor Details

  • Method Details

    • processCall

      public Object processCall(CharArrayWriter cdata, org.jabsorb.JSONRPCBridge json_bridge, jakarta.servlet.http.HttpServletRequest request)
      Description copied from interface: JsonRpcService
      Process a JSON RPC call
      Specified by:
      processCall in interface JsonRpcService
      Parameters:
      cdata - the JSON data
      json_bridge - the JSONRPCBridge object
      request - the request
      Returns:
      the return object of the JSON RPC call
    • registerObjectGlobal

      public void registerObjectGlobal(String key, Object value)
      Description copied from interface: JsonRpcService
      Register an object with the JSONRPCBridge globally
      Specified by:
      registerObjectGlobal in interface JsonRpcService
      Parameters:
      key - the name of the object in the session
      value - the object to register (not null)
    • registerObject

      public void registerObject(jakarta.servlet.http.HttpSession session, String key, Object value)
      Description copied from interface: JsonRpcService
      Register an object with the JSONRPCBridge in a given session
      Specified by:
      registerObject in interface JsonRpcService
      Parameters:
      session - the session
      key - the name of the object in the session
      value - the object to register (not null)
    • getBridge

      public org.jabsorb.JSONRPCBridge getBridge(jakarta.servlet.http.HttpSession session)
      Description copied from interface: JsonRpcService
      Get the JSONRPCBridge from the session
      Specified by:
      getBridge in interface JsonRpcService
      Parameters:
      session - the session
      Returns:
      the JSONRPCBridge instance
    • clearBridge

      public void clearBridge(jakarta.servlet.http.HttpSession session)
      Description copied from interface: JsonRpcService
      Remove the JSONRPCBridge from the session
      Specified by:
      clearBridge in interface JsonRpcService
      Parameters:
      session - the session