public class JsonRpcResponse
extends java.lang.Object
| Constructor and Description |
|---|
JsonRpcResponse(java.lang.String id)
JsonRpcResponse Constructor.
|
JsonRpcResponse(java.lang.String id,
java.lang.String error)
JsonRpcResponse Constructor.
|
JsonRpcResponse(java.lang.String id,
java.lang.String error,
java.util.List<java.lang.Object> result)
JsonRpcResponse Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getError()
Returns error.
|
java.lang.String |
getId()
Returns id.
|
java.util.List<java.lang.Object> |
getResult()
Returns result.
|
int |
hashCode() |
java.lang.String |
toString() |
public JsonRpcResponse(java.lang.String id)
id - the id node of response informationpublic JsonRpcResponse(java.lang.String id,
java.lang.String error)
id - the id node of response informationerror - the error node of response informationpublic JsonRpcResponse(java.lang.String id,
java.lang.String error,
java.util.List<java.lang.Object> result)
id - the id node of response informationerror - the error node of response informationresult - the result node of response informationpublic java.lang.String getId()
public java.lang.String getError()
public java.util.List<java.lang.Object> getResult()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object