Class ValidatingClientInterceptor

java.lang.Object
io.envoyproxy.pgv.grpc.ValidatingClientInterceptor
All Implemented Interfaces:
io.grpc.ClientInterceptor

public class ValidatingClientInterceptor extends Object implements io.grpc.ClientInterceptor
ValidatingClientInterceptor is a gRPC ClientInterceptor that validates outbound gRPC messages before transmission. Non-compliant messages result in an INVALID_ARGUMENT status exception.
  • Constructor Details

    • ValidatingClientInterceptor

      public ValidatingClientInterceptor(ValidatorIndex index)
  • Method Details

    • interceptCall

      public <ReqT, RespT> io.grpc.ClientCall<ReqT,RespT> interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)
      Specified by:
      interceptCall in interface io.grpc.ClientInterceptor