Module io.inverno.mod.web.server
Package io.inverno.mod.web.server.spi
Interface ErrorRouteManager<A extends ExchangeContext,B extends ErrorExchange<A>,C extends Routable<A,B,C,D,E>,D extends ErrorRouteManager<A,B,C,D,E>,E extends Route<A,B>>
- Type Parameters:
A
- the type of the exchange contextB
- the type of error exchange handled by the routeC
- the routable typeD
- the error route manager typeE
- the route type
- All Superinterfaces:
RouteManager<A,
B, C, D, E>
- All Known Subinterfaces:
ErrorWebRouteManager<A,
B>
public interface ErrorRouteManager<A extends ExchangeContext,B extends ErrorExchange<A>,C extends Routable<A,B,C,D,E>,D extends ErrorRouteManager<A,B,C,D,E>,E extends Route<A,B>>
extends RouteManager<A,B,C,D,E>
Base error route manager interface.
An error route manager is used to manage the routes of an error router. It is created by an error router and allows to define, enable, disable, remove and find routes in an error router.
A typical implementation should define methods to set criteria used by the router to match an error exchange to an error route and an error exchange handler that eventually handles the matched error exchange.
- Since:
- 1.3
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Methods inherited from interface io.inverno.mod.web.server.spi.RouteManager
disable, enable, findRoutes, handler, remove
-
Method Details
-
error
Specifies the type of errors accepted by the route.
- Parameters:
error
- a type of error- Returns:
- the error route manager
- See Also:
-