Uses of Class
org.apache.juneau.bean.jsonrpc.JsonRpcResponse
Packages that use JsonRpcResponse
Package
Description
JSON-RPC 2.0 envelope beans.
Revision-neutral Model Context Protocol (MCP) client core - Streamable-HTTP transport orchestration, the
auth-token seam, and the pluggable response cache that per-revision
McpClient facades build on.Revision-neutral core for MCP endpoints built on
juneau-rest-server.-
Uses of JsonRpcResponse in org.apache.juneau.bean.jsonrpc
Methods in org.apache.juneau.bean.jsonrpc that return JsonRpcResponseModifier and TypeMethodDescriptionstatic JsonRpcResponseJsonRpcResponse.errorResponse(Object id, int code, String message) Creates a JSON-RPC 2.0 error response with no structured error data.static JsonRpcResponseJsonRpcResponse.errorResponse(Object id, int code, String message, Object data) Creates a JSON-RPC 2.0 error response.static JsonRpcResponseCreates a JSON-RPC 2.0 success response.JsonRpcResponse.setError(JsonRpcError value) Sets the error payload.Sets the response id.JsonRpcResponse.setJsonrpc(String value) Sets the JSON-RPC protocol version.Sets the result payload. -
Uses of JsonRpcResponse in org.apache.juneau.rest.client.mcp
Methods in org.apache.juneau.rest.client.mcp that return JsonRpcResponseModifier and TypeMethodDescriptionAbstractMcpClient.send(JsonRpcRequest request) Sends a raw JSON-RPC request and returns the raw JSON-RPC response envelope.AbstractMcpClient.send(JsonRpcRequest request, Map<String, String> httpHeaders) Sends a raw JSON-RPC request and returns the raw JSON-RPC response envelope.Methods in org.apache.juneau.rest.client.mcp with parameters of type JsonRpcResponseModifier and TypeMethodDescriptiondefault voidMcpResponseCache.putResult(String scope, String key, JsonRpcResponse response, long ttlMs) Convenience entry point for an adapter that wants to cache the raw JSON-RPCresultstraight off aJsonRpcResponse: stores it, or does nothing if the response isnull , carries a JSON-RPCerror, or has anull result. -
Uses of JsonRpcResponse in org.apache.juneau.rest.server.mcp
Methods in org.apache.juneau.rest.server.mcp that return JsonRpcResponseModifier and TypeMethodDescriptionMcpResponseResult.response()Returns the value of theresponserecord component.Constructors in org.apache.juneau.rest.server.mcp with parameters of type JsonRpcResponseModifierConstructorDescriptionMcpResponseResult(JsonRpcResponse response) Creates an instance of aMcpResponseResultrecord class.