类 ServletPathMatcher

java.lang.Object
com.alibaba.druid.util.ServletPathMatcher
所有已实现的接口:
PatternMatcher

public class ServletPathMatcher extends Object implements PatternMatcher
  • 方法详细资料

    • getInstance

      public static ServletPathMatcher getInstance()
    • matches

      public boolean matches(String pattern, String source)

      three type: endsWithMatch(eg. /xxx*=/xxx/xyz), startsWithMatch(eg. *.xxx=abc.xxx), equals(eg. /xxx=/xxx).

      Notice: *xxx* will match *xxxyyyy. endsWithMatch first.
      指定者:
      matches 在接口中 PatternMatcher
      参数:
      pattern - the pattern to match against
      source - the source to match
      返回:
      true if the given source matches the specified pattern, false otherwise.