com.googlecode.android_scripting.jsonrpc
Class JsonRpcResult
java.lang.Object
com.googlecode.android_scripting.jsonrpc.JsonRpcResult
public class JsonRpcResult
- extends java.lang.Object
Represents a JSON RPC result.
- Author:
- Damon Kohler (damonkohler@gmail.com)
- See Also:
http://json-rpc.org/wiki/specification
|
Method Summary |
static JSONObject |
empty(int id)
|
static JSONObject |
error(int id,
java.lang.Throwable t)
|
static JSONObject |
result(int id,
java.lang.Object data)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
empty
public static JSONObject empty(int id)
throws JSONException
- Throws:
JSONException
result
public static JSONObject result(int id,
java.lang.Object data)
throws JSONException
- Throws:
JSONException
error
public static JSONObject error(int id,
java.lang.Throwable t)
throws JSONException
- Throws:
JSONException