Class ValidatingInterceptor

java.lang.Object
org.lognet.springboot.grpc.validation.ValidatingInterceptor
All Implemented Interfaces:
io.grpc.ServerInterceptor, org.springframework.core.Ordered

public class ValidatingInterceptor extends Object implements io.grpc.ServerInterceptor, org.springframework.core.Ordered
  • Constructor Details

    • ValidatingInterceptor

      public ValidatingInterceptor(jakarta.validation.Validator validator, FailureHandlingSupport failureHandlingSupport)
  • 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
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • order

      public ValidatingInterceptor order(Integer order)
      Returns:
      this.