com.googlecode.android_scripting.jsonrpc
Class JsonRpcServer

java.lang.Object
  extended by com.googlecode.android_scripting.SimpleServer
      extended by com.googlecode.android_scripting.jsonrpc.JsonRpcServer

public class JsonRpcServer
extends SimpleServer

A JSON RPC server that forwards RPC calls to a specified receiver object.

Author:
Damon Kohler (damonkohler@gmail.com)

Nested Class Summary
 
Nested classes/interfaces inherited from class com.googlecode.android_scripting.SimpleServer
SimpleServer.SimpleServerObserver
 
Constructor Summary
JsonRpcServer(RpcReceiverManagerFactory managerFactory, java.lang.String handshake)
          Construct a JsonRpcServer connected to the provided RpcReceiverManager.
 
Method Summary
 void shutdown()
           
 
Methods inherited from class com.googlecode.android_scripting.SimpleServer
addObserver, getNumberOfConnections, getPublicInetAddress, removeObserver, startAllInterfaces, startLocal, startPublic
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonRpcServer

public JsonRpcServer(RpcReceiverManagerFactory managerFactory,
                     java.lang.String handshake)
Construct a JsonRpcServer connected to the provided RpcReceiverManager.

Parameters:
managerFactory - the RpcReceiverManager to register with the server
handshake - the secret handshake required for authorization to use this server
Method Detail

shutdown

public void shutdown()
Overrides:
shutdown in class SimpleServer