Package org.springframework.util
Class AntPathMatcher.AntPathStringMatcher
java.lang.Object
org.springframework.util.AntPathMatcher.AntPathStringMatcher
- Enclosing class:
- AntPathMatcher
Tests whether 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}.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAntPathStringMatcher(String pattern, String pathSeparator, boolean caseSensitive) -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatchStrings(String str, Map<String, String> uriTemplateVariables) Main entry point.
-
Constructor Details
-
AntPathStringMatcher
-
-
Method Details
-
matchStrings
Main entry point.- Returns:
trueif the string matches against the pattern, orfalseotherwise.
-