Module io.inverno.mod.web.server
Package io.inverno.mod.web.server.spi
Interface Routable<A extends ExchangeContext,B extends Exchange<A>,C extends Routable<A,B,C,D,E>,D extends RouteManager<A,B,C,D,E>,E extends Route<A,B>>
- Type Parameters:
A
- the type of the exchange contextB
- the type of exchange handled by the routeC
- the routable typeD
- the route manager typeE
- the route type
- All Known Subinterfaces:
ErrorInterceptedRouter<A,
,B, C, D, E, F, G, H> ErrorRouter<A,
,B, C, D, E, F, G, H> ErrorWebInterceptedRouter<A>
,ErrorWebRoutable<A,
,B> ErrorWebRouter<A>
,InterceptedRouter<A,
,B, C, D, E, F, G, H> Router<A,
,B, C, D, E, F, G, H> WebInterceptedRouter<A>
,WebRoutable<A,
,B> WebRouter<A>
public interface Routable<A extends ExchangeContext,B extends Exchange<A>,C extends Routable<A,B,C,D,E>,D extends RouteManager<A,B,C,D,E>,E extends Route<A,B>>
Defines method to specify interceptors on a router.
- Since:
- 1.3
- Author:
- Jeremy Kuhn
- See Also:
-
Method Details
-
route
D route()Returns a route manager to define, enable, disable, remove or find routes in the router.
- Returns:
- a route manager
-
route
Invokes the specified route configurer on a route manager.
- Parameters:
routeConfigurer
- a route configurer- Returns:
- the router
-
getRoutes
Returns the routes defined in the router.
- Returns:
- a set of routes or an empty set if no route is defined in the router
-