Class JSONRPCContextKeys
java.lang.Object
org.a2aproject.sdk.transport.jsonrpc.context.JSONRPCContextKeys
Shared JSON-RPC context keys for A2A protocol data.
These keys provide access to JSON-RPC context information stored in
ServerCallContext, enabling rich context access
in service method implementations and middleware.
Usage Example
public void processRequest(ServerCallContext context) {
String tenant = context.get(JSONRPCContextKeys.TENANT_KEY);
String method = context.get(JSONRPCContextKeys.METHOD_NAME_KEY);
Map<String, String> headers = context.get(JSONRPCContextKeys.HEADERS_KEY);
}
- See Also:
-
Field Summary
Fields -
Method Summary
-
Field Details
-
HEADERS_KEY
-
METHOD_NAME_KEY
Context key for storing the method name being called.- See Also:
-
TENANT_KEY
Context key for storing the tenant identifier extracted from the normalized path.- See Also:
-