public enum PathSpecGroup extends Enum<PathSpecGroup>
This is used to facilitate proper pathspec search order.
Search Order:
Enum.ordinal()
[increasing]PathSpec.specLength
[decreasing]PathSpec.pathSpec
[natural sort order]Enum Constant and Description |
---|
DEFAULT
The default spec for accessing the Default path behavior.
|
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.
|
PREFIX_GLOB
For path specs that have a hardcoded prefix and a trailing wildcard glob.
|
ROOT
The root spec for accessing the Root behavior.
|
SUFFIX_GLOB
For path specs that have a wildcard glob with a hardcoded suffix
|
Modifier and Type | Method and Description |
---|---|
static PathSpecGroup |
valueOf(String name)
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.
|
public static final PathSpecGroup ROOT
"" - servlet spec (Root Servlet) null - legacy (Root Servlet)Note: there is no known uri-template spec variant of this kind of path spec
public static final PathSpecGroup EXACT
public static final PathSpecGroup MIDDLE_GLOB
"^/downloads/[^/]*.zip$" - regex spec "/a/{var}/c" - uri-template specNote: there is no known servlet spec variant of this kind of path spec
public static final PathSpecGroup PREFIX_GLOB
"/downloads/*" - servlet spec "/api/*" - servlet spec "^/rest/.*$" - regex spec "/bookings/{guest-id}" - uri-template spec "/rewards/{vip-level}" - uri-template spec
public static final PathSpecGroup SUFFIX_GLOB
"*.do" - servlet spec "*.css" - servlet spec "^.*\.zip$" - regex specNote: there is no known uri-template spec variant of this kind of path spec
public static final PathSpecGroup DEFAULT
"/" - 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.
public static PathSpecGroup[] values()
for (PathSpecGroup c : PathSpecGroup.values()) System.out.println(c);
public static PathSpecGroup valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2010 - 2020 Adobe. All Rights Reserved