Class RestContextKeys
java.lang.Object
org.a2aproject.sdk.transport.rest.context.RestContextKeys
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 Summary
Fields -
Method Summary
-
Field Details
-
HEADERS_KEY
Context key for storing the headers.- See Also:
-
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 request path.- See Also:
-