public class HeaderClientInterceptor extends Object implements ClientInterceptor
| Constructor and Description |
|---|
HeaderClientInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
<ReqT,RespT> |
interceptCall(MethodDescriptor<ReqT,RespT> method,
Channel next)
|
public <ReqT,RespT> Call<ReqT,RespT> interceptCall(MethodDescriptor<ReqT,RespT> method, Channel next)
ClientInterceptorCall creation by the next Channel.
Many variations of interception are possible. Complex implementations may return a wrapper
around the result of next.newCall(), whereas a simpler implementation may just modify
the header metadata prior to returning the result of next.newCall().
interceptCall in interface ClientInterceptormethod - the remote method to be called.next - the channel which is being intercepted.null.