Class ValidatingServerInterceptor

java.lang.Object
io.envoyproxy.pgv.grpc.ValidatingServerInterceptor
All Implemented Interfaces:
io.grpc.ServerInterceptor

public class ValidatingServerInterceptor extends Object implements io.grpc.ServerInterceptor
ValidatingServerInterceptor is a gRPC ServerInterceptor that validates inbound gRPC messages before processing. Non-compliant messages result in an INVALID_ARGUMENT status response.
  • Constructor Details

    • ValidatingServerInterceptor

      public ValidatingServerInterceptor(ValidatorIndex index)
  • 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