Package io.openems.common.jsonrpc.base
Class AbstractJsonrpcRequest
java.lang.Object
io.openems.common.jsonrpc.base.JsonrpcMessage
io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
- Direct Known Subclasses:
JsonrpcNotification
,JsonrpcRequest
This represents a JsonrpcRequest. It could either be a
JsonrpcRequest
or a JsonrpcNotification
.- See Also:
-
Field Summary
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the complete method name, up to the innermost payload.abstract com.google.gson.JsonObject
Gets the paramsJsonObject
of theJsonrpcRequest
.com.google.gson.JsonObject
Gets theJsonObject
representation of thisJsonrpcMessage
.Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
from, from, toString
-
Constructor Details
-
AbstractJsonrpcRequest
-
-
Method Details
-
getMethod
-
getFullyQualifiedMethod
Returns the complete method name, up to the innermost payload.- Returns:
- combined method names
-
getParams
public abstract com.google.gson.JsonObject getParams()Gets the paramsJsonObject
of theJsonrpcRequest
.- Returns:
- the params as
JsonObject
-
toJsonObject
public com.google.gson.JsonObject toJsonObject()Description copied from class:JsonrpcMessage
Gets theJsonObject
representation of thisJsonrpcMessage
.- Overrides:
toJsonObject
in classJsonrpcMessage
- Returns:
- a
JsonObject
-