类 SaTokenContextForThreadLocalStorage

java.lang.Object
cn.dev33.satoken.context.SaTokenContextForThreadLocalStorage

public class SaTokenContextForThreadLocalStorage extends Object
Sa-Token 上下文处理器 [ThreadLocal版本] ---- 对象存储器
作者:
kong
  • 字段详细资料

  • 构造器详细资料

    • SaTokenContextForThreadLocalStorage

      public SaTokenContextForThreadLocalStorage()
  • 方法详细资料

    • setBox

      public static void setBox(SaRequest request, SaResponse response, SaStorage storage)
      初始化 [Box存储器]
      参数:
      request - SaRequest
      response - SaResponse
      storage - SaStorage
    • clearBox

      public static void clearBox()
      清除 [Box存储器]
    • getBox

      获取 [Box存储器]
      返回:
      see note
    • getBoxNotNull

      public static SaTokenContextForThreadLocalStorage.Box getBoxNotNull()
      获取 [Box存储器], 如果为空则抛出异常
      返回:
      see note
    • getRequest

      public static SaRequest getRequest()
      在 [Box存储器] 获取 [Request] 对象
      返回:
      see note
    • getResponse

      public static SaResponse getResponse()
      在 [Box存储器] 获取 [Response] 对象
      返回:
      see note
    • getStorage

      public static SaStorage getStorage()
      在 [Box存储器] 获取 [存储器] 对象
      返回:
      see note