final class Route
extends java.lang.Object
routing pattern
and a list of next-level stages
to be processed in case the
routing pattern successfully matches the un-matched right-hand part of the request.Modifier and Type | Field and Description |
---|---|
private java.util.List<Router> |
routers |
private PathPattern |
routingPattern |
Modifier | Constructor and Description |
---|---|
private |
Route(PathPattern routingPattern,
java.util.List<Router> routers) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Router> |
next()
Get next-level routers to be processed in case the routing pattern matches
the unmatched right-hand part of the request path.
|
(package private) static Route |
of(PathPattern routingPattern,
java.util.List<Router> routers)
Create a new request route.
|
PathPattern |
routingPattern()
Get the request path routing pattern.
|
private final PathPattern routingPattern
private final java.util.List<Router> routers
private Route(PathPattern routingPattern, java.util.List<Router> routers)
static Route of(PathPattern routingPattern, java.util.List<Router> routers)
routingPattern
- request path routing pattern.routers
- next-level routers to be processed in case the routing
pattern matches the unmatched right-hand part of the request path.public PathPattern routingPattern()
public java.util.List<Router> next()