Package jakarta.servlet.http
Enum MappingMatch
- All Implemented Interfaces:
- Serializable,- Comparable<MappingMatch>,- java.lang.constant.Constable
Represents the ways that a request can be mapped to a servlet
- Since:
- Servlet 4.0
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum 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 SummaryModifier and TypeMethodDescriptionstatic MappingMatchReturns 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.
- 
Enum Constant Details- 
CONTEXT_ROOTThe request was mapped to the servlet via the context root URL pattern of"".
- 
DEFAULTThe request was mapped to the servlet via the default servlet URL pattern of"/".
- 
EXACTThe request was mapped to the servlet using an exact URL pattern match.
- 
EXTENSIONThe request was mapped to the servlet using an extension URL pattern match.
- 
PATHThe request was mapped to the servlet using a path URL pattern.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-