public interface PathMatcher
Different implementations can support different pattern types, for example, Ant style path expressions, or regular expressions, or other types of text based patterns.
Modifier and Type | Field and Description |
---|---|
static AntPathMatcher |
ANT
The default Ant style path matcher.
|
static RegexPathMatcher |
REGEX
The default regex style path matcher.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(String pattern,
String source)
Returns
true if the given source matches the specified pattern ,
false otherwise. |
static final AntPathMatcher ANT
static final RegexPathMatcher REGEX