Class JSONRPCContextKeys

java.lang.Object
org.a2aproject.sdk.transport.jsonrpc.context.JSONRPCContextKeys

public final class JSONRPCContextKeys extends Object
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 Details

    • HEADERS_KEY

      public static final String HEADERS_KEY
      Context key for storing the headers.
      See Also:
    • METHOD_NAME_KEY

      public static final String METHOD_NAME_KEY
      Context key for storing the method name being called.
      See Also:
    • TENANT_KEY

      public static final String TENANT_KEY
      Context key for storing the tenant identifier extracted from the normalized path.
      See Also: