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) |
JSONObject |
process(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 JSONObject process(JSONObject request) throws RpcException, JSONException
request - Original JSON requestRpcExceptionJSONExceptionprotected JsonRpcHandler.Job createNewJob(GadgetContext context)
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.