public abstract class MetadataInterceptor extends Object implements io.grpc.ServerInterceptor
| Constructor and Description |
|---|
MetadataInterceptor(@NonNull List<String> affectedCalls) |
MetadataInterceptor(@NonNull String affectedCall) |
| Modifier and Type | Method and Description |
|---|---|
abstract <ReqT,RespT> |
intercept(io.grpc.ServerCall<ReqT,RespT> call,
ServerMetadataContainer metadata)
Handle received SiLA Client Metadata
|
<ReqT,RespT> |
interceptCall(io.grpc.ServerCall<ReqT,RespT> call,
io.grpc.Metadata headers,
io.grpc.ServerCallHandler<ReqT,RespT> next)
The actual interception logic: Calls
intercept(ServerCall, ServerMetadataContainer)
and forwards the returned context to the next call handler. |
public MetadataInterceptor(@NonNull
@NonNull String affectedCall)
public abstract <ReqT,RespT> io.grpc.Context intercept(io.grpc.ServerCall<ReqT,RespT> call,
ServerMetadataContainer metadata)
ReqT - request typeRespT - response typecall - incoming callmetadata - received SiLA Client MetadataContext.current())Context is ignored when handling metadata during SiLA Binary Uploadpublic final <ReqT,RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT,RespT> call,
io.grpc.Metadata headers,
io.grpc.ServerCallHandler<ReqT,RespT> next)
intercept(ServerCall, ServerMetadataContainer)
and forwards the returned context to the next call handler. On error, the appropriate SiLA Error is issued.interceptCall 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 chainCopyright © 2024 SiLA Java Developers. All rights reserved.