T - params type parameterpublic class RequestObject<T> extends JsonrpcObject
JSONRPC| Constructor and Description |
|---|
RequestObject() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMethod()
Returns the current value of
method attribute. |
T |
getParams()
Returns the current value of
params attribute. |
boolean |
isNotification()
Checks if this request object is a notification.
|
void |
setMethod(String method)
Replace the current value of
method attribute with given. |
void |
setParams(T params)
Replaces the current value of
params attribute with given. |
String |
toString()
Returns a string representation of the object.
|
getId, getJsonrpc, setId, setJsonrpcpublic String toString()
toString in class JsonrpcObjectpublic boolean isNotification()
JsonrpcObject.getId() method returns
null or not.true if this request object is a notification, false otherwisepublic String getMethod()
method attribute.method attributepublic void setMethod(String method)
method attribute with given.method - new value for method attributepublic T getParams()
params attribute.params attributepublic void setParams(T params)
params attribute with given.params - new value for params attributeCopyright © 2019 Jinahya, Inc.. All rights reserved.