- Type Parameters:
A
- the resource type
- All Superinterfaces:
Route<A>
A path route.
This is used to define route based on the path specified in an input. For instance, in order to resolve a handler for an HTTP request targeting resource /path/to/resource
, a path route must
be defined with /path/to/resource
path targeting a specific resource handler.
- Since:
- 1.12
- Author:
- Jeremy Kuhn
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
PathRoute.Extractor<A,
B extends PathRoute<A>, C extends PathRoute.Extractor<A, B, C>> A path route extractor.static interface
PathRoute.Manager<A,
B, C extends PathRoute<A>, D extends PathRoute.Manager<A, B, C, D, E>, E extends Router<A, B, C, D, E>> A path route manager. -
Method Summary
Modifier and TypeMethodDescriptiongetPath()
Returns an absolute normalized path.Returns an absolute URI pattern.
-
Method Details
-
getPath
String getPath()Returns an absolute normalized path.
- Returns:
- an absolute normalized path or null
-
getPathPattern
URIPattern getPathPattern()Returns an absolute URI pattern.
- Returns:
- an absolute URI pattern or null
-