Package com.intergral.deep.tests.grpc
Class TestInterceptor
- java.lang.Object
-
- com.intergral.deep.tests.grpc.TestInterceptor
-
- All Implemented Interfaces:
io.grpc.ServerInterceptor
public class TestInterceptor extends Object implements io.grpc.ServerInterceptor
-
-
Constructor Summary
Constructors Constructor Description TestInterceptor(String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.grpc.Context.Key<String>
contextKey()
<ReqT,RespT>
io.grpc.ServerCall.Listener<ReqT>interceptCall(io.grpc.ServerCall<ReqT,RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT,RespT> next)
-
-
-
Constructor Detail
-
TestInterceptor
public TestInterceptor(String key)
-
-
Method Detail
-
contextKey
public io.grpc.Context.Key<String> contextKey()
-
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 interfaceio.grpc.ServerInterceptor
-
-