|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.thetransactioncompany.jsonrpc2.JSONRPC2ParamsType
public final class JSONRPC2ParamsType
Defines the three parameter types for JSON-RPC 2.0 requests and notifications.
NO_PARAMS The method takes no parametersARRAY The method parameters are packed into a JSON array
e.g. ["val1", "val2", ...]OBJECT The method parameters are packed as a JSON object
e.g. {"param1":"val1", "param2":"val2", ...}The JSON-RPC 2.0 specification and user group forum can be found here.
| Field Summary | |
|---|---|
static JSONRPC2ParamsType |
ARRAY
The parameters are packed as a JSON array. |
static int |
ARRAY_CONST
The integer constant for the "ARRAY" parameters type. |
static JSONRPC2ParamsType |
NO_PARAMS
No parameters. |
static int |
NO_PARAMS_CONST
The integer constant for the "NO_PARAMS" parameters type. |
static JSONRPC2ParamsType |
OBJECT
The parameters are packed as a JSON object. |
static int |
OBJECT_CONST
The integer constant for the "OBJECT" parameters type. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Indicates wheter the provided object is equal to this parameters type. |
java.lang.String |
getName()
Retrieves the name for this parameters type. |
int |
intValue()
Retrieves the integer constant for this parameters type. |
java.lang.String |
toString()
Retrieves a string representing this parameters type. |
static JSONRPC2ParamsType |
valueOf(int intValue)
Retrieves the parameters type with the specified integer constant. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_PARAMS_CONST
public static final JSONRPC2ParamsType NO_PARAMS
public static final int ARRAY_CONST
public static final JSONRPC2ParamsType ARRAY
public static final int OBJECT_CONST
public static final JSONRPC2ParamsType OBJECT
| Method Detail |
|---|
public java.lang.String getName()
public int intValue()
public static JSONRPC2ParamsType valueOf(int intValue)
intValue - The integer constant for which to retrieve the
corresponding parameters type.
null if none matches.public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - The object for which to make the comparison.
true if the objects are equal, or false if
not.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||