Class ValidatingInterceptor

    • Field Summary

      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Constructor Summary

      Constructors 
      Constructor Description
      ValidatingInterceptor​(javax.validation.Validator validator)  
    • 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