GenericData.Flags AbstractMap.SimpleEntry <K,V>, AbstractMap.SimpleImmutableEntry <K,V> | Constructor and Description |
|---|
JsonRpcRequest()
|
| Modifier and Type | Method and Description |
|---|---|
JsonRpcRequest |
clone()
Makes a "deep" clone of the generic data, in which the clone is completely independent of the original.
|
Object |
getId()
Returns the identifier established by the client that must be a string or a number or
null for a notification and therefore not expect to receive a response.
|
String |
getMethod()
Returns the name of the method to be invoked.
|
Object |
getParameters()
Returns the structured value that holds the parameter values to be used during the invocation of the method or
null for none.
|
String |
getVersion()
Returns the version of the JSON-RPC protocol which is
"2.0".
|
JsonRpcRequest |
set(String
Sets the given field value (may be
null) for the given field name.
|
void |
setId(Object
Sets the identifier established by the client that must be a string or a number or
null for a notification and therefore not expect to receive a response.
|
void |
setMethod(String
Sets the name of the method to be invoked.
|
void |
setParameters(Object
Sets the structured value that holds the parameter values to be used during the invocation of the method or
null for none.
|
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic StringgetVersion()
"2.0".
public ObjectgetId()
null for a notification and therefore not expect to receive a response.
public void setId(Objectid)
null for a notification and therefore not expect to receive a response.
public StringgetMethod()
public void setMethod(Stringmethod)
public ObjectgetParameters()
null for none.
public void setParameters(Objectparameters)
null for none.
public JsonRpcRequestset(String fieldName, Object value)
GenericData
null) for the given field name. Any existing value for the field will be overwritten. It may be more slightly more efficient than
GenericData.put(String, Object) because it avoids accessing the field's original value.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public JsonRpcRequestclone()
GenericData