Package jakarta.servlet.http
Enum Class MappingMatch
- All Implemented Interfaces:
Serializable
,Comparable<MappingMatch>
,Constable
Represents the ways that a request can be mapped to a servlet
- Since:
- Servlet 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe request was mapped to the servlet via the context root URL pattern of""
.The request was mapped to the servlet via the default servlet URL pattern of"/"
.The request was mapped to the servlet using an exact URL pattern match.The request was mapped to the servlet using an extension URL pattern match.The request was mapped to the servlet using a path URL pattern. -
Method Summary
Modifier and TypeMethodDescriptionstatic MappingMatch
Returns the enum constant of this class with the specified name.static MappingMatch[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTEXT_ROOT
The request was mapped to the servlet via the context root URL pattern of""
. -
DEFAULT
The request was mapped to the servlet via the default servlet URL pattern of"/"
. -
EXACT
The request was mapped to the servlet using an exact URL pattern match. -
EXTENSION
The request was mapped to the servlet using an extension URL pattern match. -
PATH
The request was mapped to the servlet using a path URL pattern.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-