Interface JsonRpcService

    • Method Detail

      • processCall

        Object processCall​(CharArrayWriter cdata,
                           org.jabsorb.JSONRPCBridge json_bridge,
                           HttpServletRequest request)
        Process a JSON RPC call
        Parameters:
        cdata - the JSON data
        json_bridge - the JSONRPCBridge object
        request - the request
        Returns:
        the return object of the JSON RPC call
      • registerObject

        void registerObject​(HttpSession session,
                            String key,
                            Object value)
        Register an object with the JSONRPCBridge in a given session
        Parameters:
        session - the session
        key - the name of the object in the session
        value - the object to register (not null)
      • registerObjectGlobal

        void registerObjectGlobal​(String key,
                                  Object value)
        Register an object with the JSONRPCBridge globally
        Parameters:
        key - the name of the object in the session
        value - the object to register (not null)
      • getBridge

        org.jabsorb.JSONRPCBridge getBridge​(HttpSession session)
        Get the JSONRPCBridge from the session
        Parameters:
        session - the session
        Returns:
        the JSONRPCBridge instance
      • clearBridge

        void clearBridge​(HttpSession session)
        Remove the JSONRPCBridge from the session
        Parameters:
        session - the session