public class MetadataExtractingInterceptor extends Object implements ServerInterceptor
Context.current() as ServerMetadataContainer| Constructor and Description |
|---|
MetadataExtractingInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
<ReqT,RespT> |
interceptCall(ServerCall<ReqT,RespT> call,
Metadata headers,
ServerCallHandler<ReqT,RespT> next)
Capture incoming SiLA Client Metadata message bytes in an
ServerMetadataContainer and attach it to
Context.current(), then continue handling the call |
public <ReqT,RespT> ServerCall.Listener<ReqT> interceptCall(ServerCall<ReqT,RespT> call, Metadata headers, ServerCallHandler<ReqT,RespT> next)
ServerMetadataContainer and attach it to
Context.current(), then continue handling the callinterceptCall in interface ServerInterceptorReqT - Request typeRespT - Response typecall - object to receive response messagesheaders - which can contain extra call metadata from ClientCall.start(io.grpc.ClientCall.Listener<RespT>, io.grpc.Metadata), e.g. authentication
credentials.next - next processor in the interceptor chainContext.current()Copyright © 2022 SiLA Java Developers. All rights reserved.