Module io.inverno.mod.http.base
Package io.inverno.mod.http.base.router
Interface RouteExtractor<A,B extends Route<A>>
- Type Parameters:
A
- the resource typeB
- the route type
- All Known Subinterfaces:
AcceptContentRoute.Extractor<A,
,B, C> AcceptLanguageRoute.Extractor<A,
,B, C> AuthorityRoute.Extractor<A,
,B, C> ContentRoute.Extractor<A,
,B, C> ErrorRoute.Extractor<A,
,B, C> HeadersRoute.Extractor<A,
,B, C> MethodRoute.Extractor<A,
,B, C> PathRoute.Extractor<A,
,B, C> QueryParametersRoute.Extractor<A,
,B, C> URIRoute.Extractor<A,
,B, C> WebSocketSubprotocolRoute.Extractor<A,
B, C>
- All Known Implementing Classes:
AbstractRouteExtractor
public interface RouteExtractor<A,B extends Route<A>>
a route extractor is used internally in an AbstractRouter
to extract routes defined in the routing chain.
- Since:
- 1.12
- Author:
- Jeremy Kuhn
-
Method Summary
-
Method Details
-
set
Sets the resource extracted from the routing chain and stores the extracted routes.
- Parameters:
resource
- a resourcedisabled
- true if the corresponding route is disabled, false otherwise
-
getRoutes
Returns the set of extracted routes.
- Returns:
- a set of routes
-