类 CustomServerInterceptor

java.lang.Object
cn.iosd.starter.grpc.server.interceptor.CustomServerInterceptor
所有已实现的接口:
io.grpc.ServerInterceptor

public class CustomServerInterceptor extends Object implements io.grpc.ServerInterceptor
拦截:获取请求头参数
作者:
ok1996
  • 构造器详细资料

  • 方法详细资料

    • interceptCall

      public <ReqT, RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT,RespT> serverCall, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT,RespT> serverCallHandler)
      指定者:
      interceptCall 在接口中 io.grpc.ServerInterceptor