Module io.inverno.mod.http.base
Package io.inverno.mod.http.base.router
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>>
- Type Parameters:
A
- the resource typeB
- the input typeC
- the path route typeD
- the path route manager typeE
- the router type
- All Superinterfaces:
RouteManager<A,
B, C, D, E>
public 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>>
extends RouteManager<A,B,C,D,E>
A path route manager.
- Since:
- 1.12
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies the absolute path matching the path in an input.pathPattern
(URIPattern pathPattern) Specifies the absolute path pattern matching the path in an input.default D
resolvePath
(String path, boolean matchTrailingSlash) Specifies the path or path pattern matching the path in an input.Methods inherited from interface io.inverno.mod.http.base.router.RouteManager
disable, enable, findRoutes, remove, set, set, set
-
Method Details
-
resolvePath
Specifies the path or path pattern matching the path in an input.
This method determines whether the specified path is a static path or a pattern and then delegates to
path(String)
orpathPattern(URIPattern)
.- Parameters:
path
- an absolute path or path patternmatchTrailingSlash
- true to match trailing slash, false otherwise- Returns:
- the route manager
- Throws:
IllegalArgumentException
- if the specified path is not absolute
-
path
Specifies the absolute path matching the path in an input.
- Parameters:
path
- an absolute path- Returns:
- the route manager
-
pathPattern
Specifies the absolute path pattern matching the path in an input.
- Parameters:
pathPattern
- an absolute path pattern- Returns:
- the route manager
-