Part of this mapping code has been kindly borrowed from Apache Ant.
The mapping matches URLs using the following rules:
Some examples:
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public boolean | |
| private boolean | Returns: true if the string matches against the pattern, or false otherwise.pattern to match against. Must not be pattern, String null.string which must be matched against the pattern. Must not be str)null.Tests whether or not a string matches against a pattern. |
| public static String[] |
| AntPathMatcher | back to summary |
|---|---|
| public AntPathMatcher() | |
| isPattern | back to summary |
|---|---|
| public boolean isPattern(String str) | |
| match | back to summary |
|---|---|
| public boolean match(String file, String[] patterns) | |
| match | back to summary |
|---|---|
| public boolean match(String pattern, String str) | |
| matchStrings | back to summary |
|---|---|
| private boolean matchStrings(String pattern, String str) Tests whether or not a string matches against a pattern. The pattern may contain two special characters: | |
| tokenizeToStringArray | back to summary |
|---|---|
| public static String[] tokenizeToStringArray(String str, String delimiters, boolean trimTokens, boolean ignoreEmptyTokens) | |