Class CustomServerInterceptor

java.lang.Object
org.apache.camel.quarkus.component.grpc.it.CustomServerInterceptor
All Implemented Interfaces:
io.grpc.ServerInterceptor

@Singleton @Named public class CustomServerInterceptor extends Object implements io.grpc.ServerInterceptor
  • Field Details

    • RESPONSE_KEY

      public static final io.grpc.Context.Key<String> RESPONSE_KEY
    • PING_ID_CONTEXT_KEY

      public static final io.grpc.Context.Key<String> PING_ID_CONTEXT_KEY
    • PING_ID_METADATA_KEY

      public static final io.grpc.Metadata.Key<String> PING_ID_METADATA_KEY
  • Constructor Details

    • CustomServerInterceptor

      public CustomServerInterceptor()
  • Method Details

    • interceptCall

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