public enum UriPatternType extends java.lang.Enum<UriPatternType>
Modifier and Type | Class and Description |
---|---|
private static class |
UriPatternType.RegexUriPatternMatcher
Matches URIs using a regular expression.
|
private static class |
UriPatternType.ServletStyleUriPatternMatcher
Matches URIs using the pattern grammar of the Servlet API and web.xml.
|
Modifier and Type | Method and Description |
---|---|
(package private) static UriPatternMatcher |
get(UriPatternType type,
java.lang.String pattern) |
private static java.lang.String |
getUri(java.lang.String uri) |
static UriPatternType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UriPatternType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UriPatternType SERVLET
public static final UriPatternType REGEX
public static UriPatternType[] values()
for (UriPatternType c : UriPatternType.values()) System.out.println(c);
public static UriPatternType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullstatic UriPatternMatcher get(UriPatternType type, java.lang.String pattern)
private static java.lang.String getUri(java.lang.String uri)