Module io.inverno.mod.web.server
Package io.inverno.mod.web.server.spi
Interface InterceptedRouter<A extends ExchangeContext,B extends Exchange<A>,C extends Router<A,B,C,D,E,F,G,H>,D extends InterceptedRouter<A,B,C,D,E,F,G,H>,E extends RouteManager<A,B,C,E,H>,F extends RouteManager<A,B,D,F,H>,G extends InterceptorManager<A,B,D,G>,H extends InterceptableRoute<A,B>>
- Type Parameters:
A
- the type of the exchange contextB
- the type of exchange handled by the routeC
- the router typeD
- the intercepted router typeE
- the route manager typeF
- the intercepted route manager typeG
- the interceptor manager typeH
- the interceptable route type
- All Superinterfaces:
Interceptable<A,
,B, D, G> Routable<A,
B, D, F, H>
- All Known Subinterfaces:
WebInterceptedRouter<A>
public interface InterceptedRouter<A extends ExchangeContext,B extends Exchange<A>,C extends Router<A,B,C,D,E,F,G,H>,D extends InterceptedRouter<A,B,C,D,E,F,G,H>,E extends RouteManager<A,B,C,E,H>,F extends RouteManager<A,B,D,F,H>,G extends InterceptorManager<A,B,D,G>,H extends InterceptableRoute<A,B>>
extends Routable<A,B,D,F,H>, Interceptable<A,B,D,G>
A router that applies interceptors to matching route as they are created or to all the routes currently defined in the router.
An intercepting router typically wraps an underlying Router
and intercepts route creation.
- Since:
- 1.3
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionApplies the interceptors to all the routes previously defined in the router.List
<? extends ExchangeInterceptor<A, B>> Returns the list of interceptors configured in the router.Returns the underlying non-intercepting 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 router.
- Returns:
- a list of exchange interceptors
-
applyInterceptors
D applyInterceptors()Applies the interceptors to all the routes previously defined in the router.
- Returns:
- this router
-
getRouter
C getRouter()Returns the underlying non-intercepting router.
- Returns:
- the underlying non-intercepting router.
-