Class GrpcHeaderInterceptor
java.lang.Object
org.apache.camel.component.grpc.server.GrpcHeaderInterceptor
- All Implemented Interfaces:
io.grpc.ServerInterceptor
gRPC server header interceptor
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<ReqT,
RespT>
io.grpc.ServerCall.Listener<ReqT> interceptCall
(io.grpc.ServerCall<ReqT, RespT> call, io.grpc.Metadata requestHeaders, io.grpc.ServerCallHandler<ReqT, RespT> next)
-
Field Details
-
USER_AGENT_CONTEXT_KEY
-
CONTENT_TYPE_CONTEXT_KEY
-
-
Constructor Details
-
GrpcHeaderInterceptor
public GrpcHeaderInterceptor()
-
-
Method Details
-
interceptCall
public <ReqT,RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT, RespT> call, io.grpc.Metadata requestHeaders, io.grpc.ServerCallHandler<ReqT, RespT> next) - Specified by:
interceptCall
in interfaceio.grpc.ServerInterceptor
-