public class MetadataExtractingInterceptor extends Object implements io.grpc.ServerInterceptor
Context.current() as ServerMetadataContainer| Modifier and Type | Field and Description |
|---|---|
static io.grpc.Context.Key<ServerMetadataContainer> |
SILA_METADATA_KEY |
| Constructor and Description |
|---|
MetadataExtractingInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
<ReqT,RespT> |
interceptCall(io.grpc.ServerCall<ReqT,RespT> call,
io.grpc.Metadata headers,
io.grpc.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 static final io.grpc.Context.Key<ServerMetadataContainer> SILA_METADATA_KEY
public <ReqT,RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT,RespT> call,
io.grpc.Metadata headers,
io.grpc.ServerCallHandler<ReqT,RespT> next)
ServerMetadataContainer and attach it to
Context.current(), then continue handling the callinterceptCall in interface io.grpc.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 © 2024 SiLA Java Developers. All rights reserved.