Class BootServerInterceptor

java.lang.Object
org.summerboot.jexpress.nio.grpc.BootServerInterceptor
All Implemented Interfaces:
io.grpc.ServerInterceptor

public abstract class BootServerInterceptor extends Object implements io.grpc.ServerInterceptor
Author:
Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
  • Field Details

    • CONTEXT_KEY_USER_ID

      public static final io.grpc.Context.Key<String> CONTEXT_KEY_USER_ID
    • CONTEXT_KEY_CALLER

      public static final io.grpc.Context.Key<Caller> CONTEXT_KEY_CALLER
  • Constructor Details

    • BootServerInterceptor

      public BootServerInterceptor()
  • Method Details

    • interceptCall

      public <ReqT, RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT,RespT> serverCall, io.grpc.Metadata metadata, io.grpc.ServerCallHandler<ReqT,RespT> serverCallHandler)
      Specified by:
      interceptCall in interface io.grpc.ServerInterceptor
    • buildCaller

      protected abstract Caller buildCaller(String jwt)