Class ValidatingInterceptor

    • Constructor Detail

      • ValidatingInterceptor

        public ValidatingInterceptor​(javax.validation.Validator validator)
    • Method Detail

      • setErrorHandler

        @Autowired
        public void setErrorHandler​(java.util.Optional<GRpcErrorHandler> errorHandler)
      • 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