Class RestContextKeys

java.lang.Object
org.a2aproject.sdk.transport.rest.context.RestContextKeys

public final class RestContextKeys extends Object
Shared REST context keys for A2A protocol data.

These keys provide access to REST 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(RestContextKeys.TENANT_KEY);
     String method = context.get(RestContextKeys.METHOD_NAME_KEY);
     Map<String, String> headers = context.get(RestContextKeys.HEADERS_KEY);
 }
 
See Also:
  • ServerCallContext
  • 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 request path.
      See Also: