org.json.rpc.server
Class JsonRpcExecutor

java.lang.Object
  extended by org.json.rpc.server.JsonRpcExecutor
All Implemented Interfaces:
RpcIntroSpection

public final class JsonRpcExecutor
extends Object
implements RpcIntroSpection


Constructor Summary
JsonRpcExecutor()
           
JsonRpcExecutor(TypeChecker typeChecker)
           
 
Method Summary
<T> void
addHandler(String name, T handler, Class<T>... classes)
           
 boolean canExecute(Method method, com.google.gson.JsonArray params)
           
 void execute(JsonRpcServerTransport transport)
           
 Object[] getParameters(Method method, com.google.gson.JsonArray params)
           
 boolean isLocked()
           
 String[] listMethods()
           
 String[] methodSignature(String method)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonRpcExecutor

public JsonRpcExecutor()

JsonRpcExecutor

public JsonRpcExecutor(TypeChecker typeChecker)
Method Detail

isLocked

public boolean isLocked()

addHandler

public <T> void addHandler(String name,
                           T handler,
                           Class<T>... classes)

execute

public void execute(JsonRpcServerTransport transport)

canExecute

public boolean canExecute(Method method,
                          com.google.gson.JsonArray params)

getParameters

public Object[] getParameters(Method method,
                              com.google.gson.JsonArray params)

listMethods

public String[] listMethods()
Specified by:
listMethods in interface RpcIntroSpection

methodSignature

public String[] methodSignature(String method)
Specified by:
methodSignature in interface RpcIntroSpection


Copyright © 2011 DevelNix. All Rights Reserved.