Package org.miaixz.bus.core.text
Class AntPathMatcher.AntPathStringMatcher
java.lang.Object
org.miaixz.bus.core.text.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
ConstructorsConstructorDescriptionAntPathStringMatcher(String pattern, boolean caseSensitive) Create a newAntPathStringMatcherthat will match the suppliedpattern -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatchStrings(String text, Map<String, String> uriTemplateVariables) Main entry point.
-
Constructor Details
-
AntPathStringMatcher
Create a newAntPathStringMatcherthat will match the suppliedpattern- Parameters:
pattern- the pattern to match againstcaseSensitive- 是否大小写不敏感
-
-
Method Details
-
matchStrings
Main entry point.- Parameters:
text- texturiTemplateVariables- uri template vars- Returns:
trueif the string matches against the pattern, orfalseotherwise.
-