类 SaPathMatcherHolder

java.lang.Object
cn.dev33.satoken.loveqq.boot.support.SaPathMatcherHolder

public class SaPathMatcherHolder extends Object
路由匹配工具类:持有 PathMatcher 全局引用,方便快捷的调用 PathMatcher 相关方法
从以下版本开始:
1.34.0
作者:
click33
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static com.kfyty.loveqq.framework.core.support.PatternMatcher
    路由匹配器
  • 方法概要

    修饰符和类型
    方法
    说明
    static com.kfyty.loveqq.framework.core.support.PatternMatcher
    获取路由匹配器
    static boolean
    match(String pattern, String path)
    判断:指定路由匹配符是否可以匹配成功指定路径
    static void
    setPathMatcher(com.kfyty.loveqq.framework.core.support.PatternMatcher pathMatcher)
    写入路由匹配器

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • pathMatcher

      public static com.kfyty.loveqq.framework.core.support.PatternMatcher pathMatcher
      路由匹配器
  • 方法详细资料

    • getPathMatcher

      public static com.kfyty.loveqq.framework.core.support.PatternMatcher getPathMatcher()
      获取路由匹配器
      返回:
      路由匹配器
    • setPathMatcher

      public static void setPathMatcher(com.kfyty.loveqq.framework.core.support.PatternMatcher pathMatcher)
      写入路由匹配器
      参数:
      pathMatcher - 路由匹配器
    • match

      public static boolean match(String pattern, String path)
      判断:指定路由匹配符是否可以匹配成功指定路径
      参数:
      pattern - 路由匹配符
      path - 要匹配的路径
      返回:
      是否匹配成功