public class HeaderServerInterceptor extends Object implements ServerInterceptor
Constructor and Description |
---|
HeaderServerInterceptor() |
Modifier and Type | Method and Description |
---|---|
<ReqT,RespT> |
interceptCall(String method,
ServerCall<RespT> call,
Metadata.Headers requestHeaders,
ServerCallHandler<ReqT,RespT> next)
|
public <ReqT,RespT> ServerCall.Listener<ReqT> interceptCall(String method, ServerCall<RespT> call, Metadata.Headers requestHeaders, ServerCallHandler<ReqT,RespT> next)
ServerInterceptor
ServerCall
dispatch by the next
ServerCallHandler
. General
semantics of ServerCallHandler.startCall(java.lang.String, io.grpc.ServerCall<ResponseT>, io.grpc.Metadata.Headers)
apply and the returned
ServerCall.Listener
must not be null
.
If the implementation throws an exception, call
will be closed with an error.
Implementations must not throw an exception if they started processing that may use call
on another thread.
interceptCall
in interface ServerInterceptor
method
- fully qualified method name of the callcall
- object to receive response messagesnext
- next processor in the interceptor chaincall
, never null
.