java.io.Serializable
, java.lang.Comparable<ServletPathMatch.Type>
public static enum ServletPathMatch.Type extends java.lang.Enum<ServletPathMatch.Type>
Enum Constant | Description |
---|---|
NORMAL |
A normal servlet match, the invocation should proceed as normal
|
REDIRECT |
A redirect is required, as the path does not end with a trailing slash
|
REWRITE |
An internal rewrite is required, because the path matched a welcome file.
|
Modifier and Type | Method | Description |
---|---|---|
static ServletPathMatch.Type |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ServletPathMatch.Type[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServletPathMatch.Type NORMAL
public static final ServletPathMatch.Type REDIRECT
public static final ServletPathMatch.Type REWRITE
public static ServletPathMatch.Type[] values()
for (ServletPathMatch.Type c : ServletPathMatch.Type.values()) System.out.println(c);
public static ServletPathMatch.Type 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 nullCopyright © 2018. All rights reserved.