Class A2AExtensionsInterceptor

java.lang.Object
io.a2a.server.grpc.quarkus.A2AExtensionsInterceptor
All Implemented Interfaces:
io.grpc.ServerInterceptor

@ApplicationScoped public class A2AExtensionsInterceptor extends Object implements io.grpc.ServerInterceptor
gRPC server interceptor that captures request metadata and context information, providing equivalent functionality to Python's grpc.aio.ServicerContext. This interceptor: - Extracts A2A extension headers from incoming requests - Captures ServerCall and Metadata for rich context access - Stores context information in gRPC Context for service method access - Provides proper equivalence to Python's ServicerContext
  • Constructor Details

    • A2AExtensionsInterceptor

      public A2AExtensionsInterceptor()
  • Method Details

    • interceptCall

      public <ReqT, RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT,RespT> serverCall, io.grpc.Metadata metadata, io.grpc.ServerCallHandler<ReqT,RespT> serverCallHandler)
      Specified by:
      interceptCall in interface io.grpc.ServerInterceptor