Class A2AExtensionsInterceptor
java.lang.Object
org.wildfly.extras.a2a.server.apps.grpc.A2AExtensionsInterceptor
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<ReqT,RespT>
io.grpc.ServerCall.Listener<ReqT>interceptCall(io.grpc.ServerCall<ReqT, RespT> call, io.grpc.Metadata metadata, io.grpc.ServerCallHandler<ReqT, RespT> next)
-
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:
interceptCallin interfaceio.grpc.ServerInterceptor
-