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 java.lang.Object implements io.grpc.ServerInterceptor, org.springframework.core.Ordered
-
-
Constructor Summary
Constructors Constructor Description ValidatingInterceptor(javax.validation.Validator validator, FailureHandlingSupport failureHandlingSupport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrder()<ReqT,RespT>
io.grpc.ServerCall.Listener<ReqT>interceptCall(io.grpc.ServerCall<ReqT,RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT,RespT> next)ValidatingInterceptororder(java.lang.Integer order)
-
-
-
Constructor Detail
-
ValidatingInterceptor
public ValidatingInterceptor(javax.validation.Validator validator, FailureHandlingSupport failureHandlingSupport)
-
-
Method Detail
-
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:
interceptCallin interfaceio.grpc.ServerInterceptor
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
order
public ValidatingInterceptor order(java.lang.Integer order)
- Returns:
this.
-
-