Class ContextServerInterceptor
java.lang.Object
io.vertx.grpc.ContextServerInterceptor
- All Implemented Interfaces:
ServerInterceptor
@Deprecated
public abstract class ContextServerInterceptor
extends Object
implements ServerInterceptor
Deprecated.
instead use Vert.x gRPC
An abstract interceptor that allows capturing data from the metadata to the vertx context so it can be used later
on the asynchronous APIs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidDeprecated.This method is called before theinterceptCall(ServerCall, Metadata, ServerCallHandler)call happens and allows extracting data from the metadata to the vert.x context.static <T> TDeprecated.static <T> TgetOrDefault(String key, T defaultValue) Deprecated.<ReqT,RespT>
ServerCall.Listener<ReqT> interceptCall(ServerCall<ReqT, RespT> call, Metadata metadata, ServerCallHandler<ReqT, RespT> handler) Deprecated.static <R,T> R Deprecated.
-
Constructor Details
-
ContextServerInterceptor
public ContextServerInterceptor()Deprecated.
-
-
Method Details
-
bind
Deprecated.This method is called before theinterceptCall(ServerCall, Metadata, ServerCallHandler)call happens and allows extracting data from the metadata to the vert.x context.- Parameters:
metadata- the grpc connection context
-
interceptCall
public <ReqT,RespT> ServerCall.Listener<ReqT> interceptCall(ServerCall<ReqT, RespT> call, Metadata metadata, ServerCallHandler<ReqT, RespT> handler) Deprecated.- Specified by:
interceptCallin interfaceServerInterceptor
-
get
Deprecated. -
getOrDefault
Deprecated. -
put
Deprecated.
-