This is used to facilitate proper pathspec search order.
Search Order:
PathSpecGroup#ordinal() [increasing]PathSpec#getSpecLength() [decreasing]PathSpec#getDeclaration() [natural sort order]| Modifier and Type | Field 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 |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static PathSpecGroup | |
| public static PathSpecGroup[] |
| DEFAULT | back 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. | |
| EXACT | back to summary |
|---|---|
| public static final PathSpecGroup EXACT For exactly defined path specs, no glob. | |
| MIDDLE_GLOB | back 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_GLOB | back 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
| |
| ROOT | back 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_GLOB | back 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 specNote: there is no known uri-template spec variant of this kind of path spec | |
| PathSpecGroup | back to summary |
|---|---|
| private PathSpecGroup() | |
| valueOf | back to summary |
|---|---|
| public static PathSpecGroup valueOf(String name) | |
| values | back to summary |
|---|---|
| public static PathSpecGroup[] values() | |