public enum MappingMatch extends java.lang.Enum<MappingMatch>
Enumeration of Servlet mapping types.
Enum Constant and Description |
---|
CONTEXT_ROOT
This is used when the mapping was achieved
with an exact match to the application's context root.
|
DEFAULT
This is used when the mapping was achieved
with an exact match to the default servlet of the application, the '
/ '
character. |
EXACT
This is used when the mapping was achieved
with an exact match to the incoming request.
|
EXTENSION
This is used when the mapping was achieved
using an extension, such as "
*.xhtml ". |
PATH
This is used when the mapping was achieved
using a path, such as "
/faces/* ". |
Modifier and Type | Method and Description |
---|---|
static MappingMatch |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MappingMatch[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MappingMatch CONTEXT_ROOT
This is used when the mapping was achieved with an exact match to the application's context root.
public static final MappingMatch DEFAULT
This is used when the mapping was achieved
with an exact match to the default servlet of the application, the '/
'
character.
public static final MappingMatch EXACT
This is used when the mapping was achieved with an exact match to the incoming request.
public static final MappingMatch EXTENSION
This is used when the mapping was achieved
using an extension, such as "*.xhtml
".
public static final MappingMatch PATH
This is used when the mapping was achieved
using a path, such as "/faces/*
".
public static MappingMatch[] values()
for (MappingMatch c : MappingMatch.values()) System.out.println(c);
public static MappingMatch 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 null