public class JsonRpcHandler extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
JsonRpcHandler.Job |
| Modifier and Type | Field and Description |
|---|---|
protected ExecutorService |
executor |
protected IframeUriManager |
iframeUriManager |
protected Processor |
processor |
| Constructor and Description |
|---|
JsonRpcHandler(ExecutorService executor,
Processor processor,
IframeUriManager iframeUriManager) |
| Modifier and Type | Method and Description |
|---|---|
protected JsonRpcHandler.Job |
createNewJob(GadgetContext context) |
org.json.JSONObject |
process(org.json.JSONObject request)
Processes a JSON request.
|
protected final ExecutorService executor
protected final Processor processor
protected final IframeUriManager iframeUriManager
@Inject public JsonRpcHandler(ExecutorService executor, Processor processor, IframeUriManager iframeUriManager)
public org.json.JSONObject process(org.json.JSONObject request)
throws RpcException,
org.json.JSONException
request - Original JSON requestRpcExceptionorg.json.JSONExceptionprotected JsonRpcHandler.Job createNewJob(GadgetContext context)
Copyright © 2007-2012. All Rights Reserved.