com.alibaba.druid.util
类 ServletPathMatcher
java.lang.Object
com.alibaba.druid.util.ServletPathMatcher
- 所有已实现的接口:
- PatternMatcher
public class ServletPathMatcher
- extends Object
- implements PatternMatcher
ServletPathMatcher
public ServletPathMatcher()
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.
- 指定者:
- 接口
PatternMatcher 中的 matches
- 参数:
pattern - the pattern to match againstsource - the source to match
- 返回:
true if the given source matches the specified pattern,
false otherwise.
Copyright © 2013 Alibaba Group. All Rights Reserved.