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}.
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEFAULT_VARIABLE_PATTERN |
private static java.util.regex.Pattern |
GLOB_PATTERN |
private java.util.regex.Pattern |
pattern |
private java.util.List<java.lang.String> |
variableNames |
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.
|
private java.lang.String |
quote(java.lang.String s,
int start,
int end) |
private static final java.util.regex.Pattern GLOB_PATTERN
private static final java.lang.String DEFAULT_VARIABLE_PATTERN
private final java.util.regex.Pattern pattern
private final java.util.List<java.lang.String> variableNames
public AntPathStringMatcher(java.lang.String pattern)
public AntPathStringMatcher(java.lang.String pattern, boolean caseSensitive)
private java.lang.String quote(java.lang.String s, int start, int end)
public boolean matchStrings(java.lang.String str, java.util.Map<java.lang.String,java.lang.String> uriTemplateVariables)
true
if the string matches against the pattern, or false
otherwise.