Package org.forgerock.openig.mcp.jsonrpc
Class JsonRpcResponse
java.lang.Object
org.forgerock.openig.mcp.jsonrpc.JsonRpcPayload
org.forgerock.openig.mcp.jsonrpc.JsonRpcResponse
- Direct Known Subclasses:
JsonRpcResponse.JsonRpcError,JsonRpcResponse.JsonRpcResult
public abstract sealed class JsonRpcResponse
extends JsonRpcPayload
permits JsonRpcResponse.JsonRpcResult, JsonRpcResponse.JsonRpcError
Represents a JSON-RPC response message, either a result or an error.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a JSON-RPC error message.static final classRepresents a JSON-RPC result message. -
Field Summary
Fields inherited from class org.forgerock.openig.mcp.jsonrpc.JsonRpcPayload
lazyJsonValue, payload -
Method Summary
Methods inherited from class org.forgerock.openig.mcp.jsonrpc.JsonRpcPayload
asJsonValue, toJsonRpcMessage, validate
-
Method Details
-
id
Returns the id of this response, may be String, Number or null.- Returns:
- the id of this response, may be String, Number or null
-