org.apache.turbine.services.jsonrpc

## Class TurbineJsonRpc

- java.lang.Object
- - org.apache.turbine.services.jsonrpc.TurbineJsonRpc

-     public abstract class TurbineJsonRpc
      extends Object

  This is a static accessor class for `JsonRpcService`.
  Version:
    $Id: TurbineJsonRpc.java 1706239 2015-10-01 13:18:35Z tv $
  Author:
    Scott Eade

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TurbineJsonRpc()`

  - ### Method Summary

    Methods
    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

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TurbineJsonRpc

          public TurbineJsonRpc()

  - ### Method Detail

    - #### getService

          public static JsonRpcService getService()

      Returns system's configured implementation of `JsonRpcService`.
      Returns:
        an implementation of `JsonRpcService`

    - #### processCall

          public static 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

          public static 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

    - #### registerObjectGlobal

          public static 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

    - #### getBridge

          public static org.jabsorb.JSONRPCBridge getBridge(HttpSession session)

      Get the `JSONRPCBridge` from the session
      Parameters:
        `session` - the session
      Returns:
        the `JSONRPCBridge` instance

    - #### clearBridge

          public static void clearBridge(HttpSession session)

      Remove the `JSONRPCBridge` from the session
      Parameters:
        `session` - the session

Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.