Package org.eclipse.jetty.http.pathmap
Enum PathSpecGroup
- All Implemented Interfaces:
Serializable
,Comparable<PathSpecGroup>
,java.lang.constant.Constable
Types of path spec groups.
This is used to facilitate proper pathspec search order.
Search Order:
Enum.ordinal()
[increasing]PathSpec.getSpecLength()
[decreasing]PathSpec.getDeclaration()
[natural sort order]
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe default spec for accessing the Default path behavior.For exactly defined path specs, no glob.For path specs that have a hardcoded prefix and suffix with wildcard glob in the middle.For path specs that have a hardcoded prefix and a trailing wildcard glob.The root spec for accessing the Root behavior.For path specs that have a wildcard glob with a hardcoded suffix -
Method Summary
Modifier and TypeMethodDescriptionstatic PathSpecGroup
Returns the enum constant of this type with the specified name.static PathSpecGroup[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ROOT
The root spec for accessing the Root behavior."" - servlet spec (Root Servlet) null - legacy (Root Servlet)
Note: there is no known uri-template spec variant of this kind of path spec -
EXACT
For exactly defined path specs, no glob. -
MIDDLE_GLOB
For path specs that have a hardcoded prefix and suffix with wildcard glob in the middle."^/downloads/[^/]*.zip$" - regex spec "/a/{var}/c" - uri-template spec
Note: there is no known servlet spec variant of this kind of path spec -
PREFIX_GLOB
For path specs that have a hardcoded prefix and a trailing wildcard glob."/downloads/*" - servlet spec "/api/*" - servlet spec "^/rest/.*$" - regex spec "/bookings/{guest-id}" - uri-template spec "/rewards/{vip-level}" - uri-template spec
-
SUFFIX_GLOB
For path specs that have a wildcard glob with a hardcoded suffix"*.do" - servlet spec "*.css" - servlet spec "^.*\.zip$" - regex spec
Note: there is no known uri-template spec variant of this kind of path spec -
DEFAULT
The default spec for accessing the Default path behavior."/" - servlet spec (Default Servlet) "/" - uri-template spec (Root Context) "^/$" - regex spec (Root Context)
Per Servlet Spec, pathInfo is always null for these specs. If nothing above matches, then default will match.
-
-
Method Details
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException
- if the argument is null
-