IdType - "id" type parameterpublic abstract class JsonrpcObject<IdType> extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_NAME_ID
The property name for
id. |
static String |
PROPERTY_NAME_JSONRPC
The property name for
jsonrpc. |
static String |
PROPERTY_VALUE_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" property.
|
String |
getJsonrpc()
Returns the current value of "jsonrpc" property.
|
void |
setId(IdType id)
Replaces the current value of "id" property with given.
|
void |
setJsonrpc(String jsonrpc)
Replaces the current value of "2.0" property with given.
|
String |
toString()
Returns a string representation of the object.
|
public static final String PROPERTY_NAME_JSONRPC
jsonrpc.public static final String PROPERTY_NAME_ID
id.public static final String PROPERTY_VALUE_JSONRPC
public String toString()
public String getJsonrpc()
public void setJsonrpc(String jsonrpc)
jsonrpc - new value for "2.0" property.public Object getId()
Copyright © 2019 Jinahya, Inc.. All rights reserved.