public class JsonRPCRequest extends Object
| Constructor and Description |
|---|
JsonRPCRequest(BeowulfApiType beowulfApiType,
RequestMethod requestMethod,
Object params)
Instantiate a new RequestObject.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getId()
Get the id of this request.
|
String |
getJsonrpc()
Get the json-rpc version.
|
String |
getMethod()
Get the full namespace and method name.
|
Object |
getParams()
Get the additional parameters.
|
String |
toJson() |
String |
toString() |
public JsonRPCRequest(@Nullable BeowulfApiType beowulfApiType, RequestMethod requestMethod, @Nullable Object params)
beowulfApiType - The BeowulfApiType the requestMethod
belongs to or null if the default namespace
should be used.requestMethod - The RequestMethod to request.params - An object which contains all parameters required by the
requestMethod or null if no
parameters are required.public String getJsonrpc()
public long getId()
public String getMethod()
public Object getParams()
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingException - If the object can not be transformed into valid json.Copyright © 2019. All rights reserved.