ParamsType - "params" type parameterpublic class RequestObject<IdType,ParamsType> extends JsonrpcObject<IdType>
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_NAME_METHOD
The property name for
method. |
static String |
PROPERTY_NAME_PARAMS
The property name for
params. |
PROPERTY_NAME_ID, PROPERTY_NAME_JSONRPC, PROPERTY_VALUE_JSONRPC| Constructor and Description |
|---|
RequestObject() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMethod()
Returns the current value of "method" property.
|
ParamsType |
getParams()
Returns the current value of "params" property.
|
void |
setMethod(String method)
Replace the current value of "method" property with given.
|
void |
setParams(ParamsType params)
Replaces the current value of "params" property with given.
|
String |
toString()
Returns a string representation of the object.
|
getId, getJsonrpc, setId, setJsonrpcpublic static final String PROPERTY_NAME_METHOD
method.public static final String PROPERTY_NAME_PARAMS
params.public String toString()
toString in class JsonrpcObject<IdType>public String getMethod()
public void setMethod(String method)
method - new value for "method" property.public ParamsType getParams()
public void setParams(ParamsType params)
params - new value for "params" property.Copyright © 2019 Jinahya, Inc.. All rights reserved.