类 PathMatchUtils

java.lang.Object
org.apache.shenyu.plugin.base.utils.PathMatchUtils

public class PathMatchUtils extends Object
The type Path match utils.
  • 构造器详细资料

    • PathMatchUtils

      public PathMatchUtils()
  • 方法详细资料

    • replaceAll

      public static String replaceAll(String path, String regex, String replacement)
      replace url {id} to real param.
      参数:
      path - the total path
      regex - the regex content
      replacement - the replacement content
      返回:
      the string
    • match

      public static boolean match(String matchUrls, String realPath)
      Match boolean.
      参数:
      matchUrls - the path pattern
      realPath - the real path
      返回:
      the boolean
    • pathPattern

      public static boolean pathPattern(String pathPattern, String realPath)
      Path pattern boolean.
      参数:
      pathPattern - the path pattern
      realPath - the real path
      返回:
      the boolean