Class AntPathMatcher.AntPathStringMatcher
java.lang.Object
com.igormaznitsa.jcp.utils.antpathmatcher.AntPathMatcher.AntPathStringMatcher
- Enclosing class:
AntPathMatcher
Tests whether or not a string matches against a pattern via a
Pattern
.
The pattern may contain special characters: '*' means zero or more characters; '?' means one and only one character; '{' and '}' indicate a URI template pattern. For example /users/{user}.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAntPathStringMatcher
(String pattern) AntPathStringMatcher
(String pattern, boolean caseSensitive) -
Method Summary
-
Field Details
-
GLOB_PATTERN
-
DEFAULT_VARIABLE_PATTERN
- See Also:
-
pattern
-
variableNames
-
-
Constructor Details
-
AntPathStringMatcher
-
AntPathStringMatcher
-
-
Method Details
-
quote
-
matchStrings
Main entry point.- Returns:
true
if the string matches against the pattern, orfalse
otherwise.
-