public abstract class JsonrpcObject extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSONRPC
The fixed value for
jsonrpc attribute. |
| Constructor and Description |
|---|
JsonrpcObject() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getId()
Returns the current value of
id attribute. |
String |
getJsonrpc()
Returns the current value of
jsonrpc attribute which is always "2.0". |
void |
setId(Object id)
Replaces the current value of
id attribute with given. |
void |
setJsonrpc(String jsonrpc)
Replaces the current value of
jsonrpc attribute with given. |
String |
toString()
Returns a string representation of the object.
|
public static final String JSONRPC
jsonrpc attribute. The value is "2.0".public String toString()
public String getJsonrpc()
jsonrpc attribute which is always "2.0".jsonrpc attribute.public void setJsonrpc(String jsonrpc)
jsonrpc attribute with given.jsonrpc - new value for jsonrpc attribute.public Object getId()
id attribute.id attribute.public void setId(Object id)
id attribute with given.id - new value for id attribute.Copyright © 2019 Jinahya, Inc.. All rights reserved.