类 SaHolder

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

public class SaHolder extends Object
Sa-Token 上下文持有类
作者:
kong
  • 构造器详细资料

    • SaHolder

      public SaHolder()
  • 方法详细资料

    • getContext

      public static SaTokenContext getContext()
      获取当前请求的 SaTokenContext
      返回:
      see note
    • getRequest

      public static SaRequest getRequest()
      获取当前请求的 [Request] 对象
      返回:
      see note
    • getResponse

      public static SaResponse getResponse()
      获取当前请求的 [Response] 对象
      返回:
      see note
    • getStorage

      public static SaStorage getStorage()
      获取当前请求的 [存储器] 对象
      返回:
      see note
    • getApplication

      public static SaApplication getApplication()
      获取全局 SaApplication 对象
      返回:
      see note