private 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 |
---|
AntPathMatcher.AntPathStringMatcher(java.lang.String pattern) |
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 AntPathMatcher.AntPathStringMatcher(java.lang.String pattern)
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.