Module io.inverno.mod.web.server
Package io.inverno.mod.web.server.spi
Interface ErrorInterceptedRouter<A extends ExchangeContext,B extends ErrorExchange<A>,C extends ErrorRouter<A,B,C,D,E,F,G,H>,D extends ErrorInterceptedRouter<A,B,C,D,E,F,G,H>,E extends ErrorRouteManager<A,B,C,E,H>,F extends ErrorRouteManager<A,B,D,F,H>,G extends ErrorInterceptorManager<A,B,D,G>,H extends InterceptableRoute<A,B>>
- Type Parameters:
A
- the type of the exchange contextB
- the type of error exchange handled by the interceptorC
- the error router typeD
- the intercepted error router typeE
- the error route manager typeF
- the intercepted error route manager typeG
- the error interceptor manager typeH
- the interceptable route type
- All Superinterfaces:
Interceptable<A,
,B, D, G> Routable<A,
B, D, F, H>
- All Known Subinterfaces:
ErrorWebInterceptedRouter<A>
public interface ErrorInterceptedRouter<A extends ExchangeContext,B extends ErrorExchange<A>,C extends ErrorRouter<A,B,C,D,E,F,G,H>,D extends ErrorInterceptedRouter<A,B,C,D,E,F,G,H>,E extends ErrorRouteManager<A,B,C,E,H>,F extends ErrorRouteManager<A,B,D,F,H>,G extends ErrorInterceptorManager<A,B,D,G>,H extends InterceptableRoute<A,B>>
extends Routable<A,B,D,F,H>, Interceptable<A,B,D,G>
An error router that applies interceptors to matching route as they are created or to all the routes currently defined in the error router.
An intercepting error router typically wraps an underlying ErrorRouter
and intercepts route creation.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionApplies the interceptors to all the routes previously defined in the error router.List
<? extends ExchangeInterceptor<A, B>> Returns the list of interceptors configured in the error router.Returns the underlying non-intercepting error router.Methods inherited from interface io.inverno.mod.web.server.spi.Interceptable
intercept, intercept
-
Method Details
-
getInterceptors
List<? extends ExchangeInterceptor<A,B>> getInterceptors()Returns the list of interceptors configured in the error router.
- Returns:
- a list of exchange interceptors
-
applyInterceptors
D applyInterceptors()Applies the interceptors to all the routes previously defined in the error router.
- Returns:
- this error router
-
getRouter
C getRouter()Returns the underlying non-intercepting error router.
- Returns:
- the underlying non-intercepting error router.
-