Class ValidatingInterceptor
- java.lang.Object
-
- org.lognet.springboot.grpc.validation.ValidatingInterceptor
-
- All Implemented Interfaces:
io.grpc.ServerInterceptor,FailureHandlingServerInterceptor,org.springframework.core.Ordered
public class ValidatingInterceptor extends java.lang.Object implements FailureHandlingServerInterceptor, org.springframework.core.Ordered
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.lognet.springboot.grpc.FailureHandlingServerInterceptor
FailureHandlingServerInterceptor.MessageBlockingServerCallListener<R>
-
-
Constructor Summary
Constructors Constructor Description ValidatingInterceptor(javax.validation.Validator validator)
-
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)voidsetErrorHandler(java.util.Optional<GRpcErrorHandler> errorHandler)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.lognet.springboot.grpc.FailureHandlingServerInterceptor
closeCall
-
-
-
-
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:
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.
-
-