Class A2AExtensionsInterceptor

java.lang.Object
org.wildfly.extras.a2a.server.apps.grpc.A2AExtensionsInterceptor
All Implemented Interfaces:
io.grpc.ServerInterceptor

public class A2AExtensionsInterceptor extends Object implements io.grpc.ServerInterceptor
gRPC server interceptor that extracts A2A protocol headers from request metadata and stores them in the gRPC Context for use by GrpcHandler.

WildFly's gRPC subsystem discovers ServerInterceptor implementations in the deployment and applies them automatically.

  • Constructor Details

    • A2AExtensionsInterceptor

      public A2AExtensionsInterceptor()
  • Method Details

    • interceptCall

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