public class ServletPathMatcher extends Object implements PatternMatcher
| Constructor and Description |
|---|
ServletPathMatcher() |
| Modifier and Type | Method and Description |
|---|---|
static ServletPathMatcher |
getInstance() |
boolean |
matches(String pattern,
String source)
three type: endsWithMatch(eg.
|
public static ServletPathMatcher getInstance()
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 in interface PatternMatcherpattern - the pattern to match againstsource - the source to matchtrue if the given source matches the specified pattern,
false otherwise.Copyright © 2013–2018 Alibaba Group. All rights reserved.