Module io.inverno.mod.web.server
Package io.inverno.mod.web.server.spi
Interface Interceptable<A extends ExchangeContext,B extends Exchange<A>,C extends Interceptable<A,B,C,D>,D extends InterceptorManager<A,B,C,D>>
- Type Parameters:
A
- the type of the exchange contextB
- the type of intercepted exchangeC
- the interceptable typeD
- the interceptor manager type
- All Known Subinterfaces:
ErrorInterceptedRouter<A,
,B, C, D, E, F, G, H> ErrorRouter<A,
,B, C, D, E, F, G, H> ErrorWebInterceptable<A,
,B> ErrorWebInterceptedRouter<A>
,ErrorWebRouter<A>
,InterceptedRouter<A,
,B, C, D, E, F, G, H> Router<A,
,B, C, D, E, F, G, H> WebInterceptable<A,
,B> WebInterceptedRouter<A>
,WebRouter<A>
public interface Interceptable<A extends ExchangeContext,B extends Exchange<A>,C extends Interceptable<A,B,C,D>,D extends InterceptorManager<A,B,C,D>>
Defines method to specify interceptors on a router.
- Since:
- 1.3
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
-
Method Details
-
intercept
D intercept()Returns an interceptor manager to define route interceptors.
- Returns:
- an interceptor manager
-
intercept
Invokes the specified interceptor configurer on an interceptor manager.
- Parameters:
interceptorConfigurer
- an interceptor configurer- Returns:
- an intercepted router
-