org.apache.shindig.gadgets.servlet
Class JsonRpcHandler.Job

java.lang.Object
  extended by org.apache.shindig.gadgets.servlet.JsonRpcHandler.Job
All Implemented Interfaces:
Callable<org.json.JSONObject>
Enclosing class:
JsonRpcHandler

protected class JsonRpcHandler.Job
extends Object
implements Callable<org.json.JSONObject>


Field Summary
protected  GadgetContext context
           
 
Constructor Summary
JsonRpcHandler.Job(GadgetContext context)
           
 
Method Summary
 org.json.JSONObject call()
           
protected  org.json.JSONObject getGadgetJson(Gadget gadget, GadgetSpec spec)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected final GadgetContext context
Constructor Detail

JsonRpcHandler.Job

public JsonRpcHandler.Job(GadgetContext context)
Method Detail

call

public org.json.JSONObject call()
                         throws RpcException
Specified by:
call in interface Callable<org.json.JSONObject>
Throws:
RpcException

getGadgetJson

protected org.json.JSONObject getGadgetJson(Gadget gadget,
                                            GadgetSpec spec)
                                     throws org.json.JSONException
Throws:
org.json.JSONException


Copyright © 2007-2012. All Rights Reserved.