接口 SaTokenContext

所有已知子接口:
SaTokenSecondContext
所有已知实现类:
SaTokenContextDefaultImpl, SaTokenContextForThreadLocal

public interface SaTokenContext
Sa-Token 上下文处理器
作者:
kong
  • 方法概要

    修饰符和类型
    方法
    说明
    获取当前请求的 [Request] 对象
    获取当前请求的 [Response] 对象
    获取当前请求的 [存储器] 对象
    default boolean
    此上下文是否有效
    boolean
    matchPath(String pattern, String path)
    校验指定路由匹配符是否可以匹配成功指定路径
  • 方法详细资料

    • getRequest

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

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

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

      boolean matchPath(String pattern, String path)
      校验指定路由匹配符是否可以匹配成功指定路径
      参数:
      pattern - 路由匹配符
      path - 需要匹配的路径
      返回:
      see note
    • isValid

      default boolean isValid()
      此上下文是否有效
      返回:
      /