public enum PathSpecGroup extends Enum<PathSpecGroup>
This is used to facilitate proper pathspec search order.
Search Order: Enum.ordinal() [increasin], PathSpec.specLength [decreasing], PathSpec.pathSpec [natural sort order]
| Enum Constant and Description |
|---|
DEFAULT
The default spec for accessing the Root and/or Default 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.
|
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 EXACT
public static final PathSpecGroup MIDDLE_GLOB
"^/downloads/[^/]*.zip$" - regex spec
"/a/{var}/c" - websocket spec
Note: there is no known servlet spec variant of this kind of path specpublic static final PathSpecGroup PREFIX_GLOB
"/downloads/*" - servlet spec
"/api/*" - servlet spec
"^/rest/.*$" - regex spec
"/bookings/{guest-id}" - websocket spec
"/rewards/{vip-level}" - websocket spec
public static final PathSpecGroup SUFFIX_GLOB
"*.do" - servlet spec "*.css" - servlet spec "^.*\.zip$" - regex specNote: there is no known websocket spec variant of this kind of path spec
public static final PathSpecGroup DEFAULT
"/" - servlet spec (Default Servlet) "/" - websocket spec (Root Context) "^/$" - regex spec (Root Context)
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 © 1995-2015 Webtide. All Rights Reserved.