protected static class AntPathMatcher.AntPathStringMatcher
extends java.lang.Object
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 and Description |
---|
AntPathStringMatcher(java.lang.String pattern) |
AntPathStringMatcher(java.lang.String pattern,
boolean caseSensitive) |
Modifier and Type | Method and Description |
---|---|
boolean |
matchStrings(java.lang.String str,
java.util.Map<java.lang.String,java.lang.String> uriTemplateVariables)
Main entry point.
|
public AntPathStringMatcher(java.lang.String pattern)
public AntPathStringMatcher(java.lang.String pattern, boolean caseSensitive)
public boolean matchStrings(java.lang.String str, @Nullable java.util.Map<java.lang.String,java.lang.String> uriTemplateVariables)
true
if the string matches against the pattern, or false
otherwise.