Package com.google.api.gax.grpc
Class GrpcHeaderInterceptor
- java.lang.Object
-
- com.google.api.gax.grpc.GrpcHeaderInterceptor
-
- All Implemented Interfaces:
io.grpc.ClientInterceptor
@InternalApi public class GrpcHeaderInterceptor extends Object implements io.grpc.ClientInterceptor
An interceptor to handle custom headers.Package-private for internal usage.
-
-
Constructor Summary
Constructors Constructor Description GrpcHeaderInterceptor(Map<String,String> staticHeaders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetUserAgentHeader()<ReqT,RespT>
io.grpc.ClientCall<ReqT,RespT>interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)
-
-
-
Method Detail
-
interceptCall
public <ReqT,RespT> io.grpc.ClientCall<ReqT,RespT> interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)- Specified by:
interceptCallin interfaceio.grpc.ClientInterceptor
-
getUserAgentHeader
public String getUserAgentHeader()
-
-