Top Description Fields Constructors Methods
org.eclipse.jetty.http.pathmap

public final Enum PathSpecGroup

extends Enum<PathSpecGroup>
Class Inheritance

Types of path spec groups.

This is used to facilitate proper pathspec search order.

Search Order:

  1. PathSpecGroup#ordinal() [increasing]
  2. PathSpec#getSpecLength() [decreasing]
  3. PathSpec#getDeclaration() [natural sort order]

Field Summary

Modifier and TypeField and Description
public static final PathSpecGroup
DEFAULT

The default spec for accessing the Default path behavior.

public static final PathSpecGroup
EXACT

For exactly defined path specs, no glob.

public static final PathSpecGroup
MIDDLE_GLOB

For path specs that have a hardcoded prefix and suffix with wildcard glob in the middle.

public static final PathSpecGroup
PREFIX_GLOB

For path specs that have a hardcoded prefix and a trailing wildcard glob.

public static final PathSpecGroup
ROOT

The root spec for accessing the Root behavior.

public static final PathSpecGroup
SUFFIX_GLOB

For path specs that have a wildcard glob with a hardcoded suffix

  "*.do"        - servlet spec
  "*.css"       - servlet spec
  "^.*\.zip$"   - regex spec

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static PathSpecGroup
public static PathSpecGroup[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DEFAULTback to summary
public static final PathSpecGroup 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.
EXACTback to summary
public static final PathSpecGroup EXACT

For exactly defined path specs, no glob.

MIDDLE_GLOBback to summary
public static final PathSpecGroup 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_GLOBback to summary
public static final PathSpecGroup 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
ROOTback to summary
public static final PathSpecGroup 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
SUFFIX_GLOBback to summary
public static final PathSpecGroup 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

Constructor Detail

PathSpecGroupback to summary
private PathSpecGroup()

Method Detail

valueOfback to summary
public static PathSpecGroup valueOf(String name)
valuesback to summary
public static PathSpecGroup[] values()