Module io.inverno.mod.web.server
Package io.inverno.mod.web.server
Interface WebInterceptable<A extends ExchangeContext,B extends WebInterceptable<A,B>>
- Type Parameters:
A
- the type of the exchange contextB
- the Web interceptable type
- All Superinterfaces:
Interceptable<A,
WebExchange<A>, B, WebInterceptorManager<A, B>>
- All Known Subinterfaces:
WebInterceptedRouter<A>
,WebRouter<A>
public interface WebInterceptable<A extends ExchangeContext,B extends WebInterceptable<A,B>>
extends Interceptable<A,WebExchange<A>,B,WebInterceptorManager<A,B>>
A Web interceptable allows to defined Web interceptors.
- Since:
- 1.3
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionconfigureInterceptors
(WebInterceptorsConfigurer<? super A> configurer) Configures web route interceptors using the specified configurer and returns a web interceptable.configureInterceptors
(List<WebInterceptorsConfigurer<? super A>> configurers) Configures web route interceptors using the specified configurers and returns a web interceptable.Methods inherited from interface io.inverno.mod.web.server.spi.Interceptable
intercept, intercept
-
Method Details
-
configureInterceptors
Configures web route interceptors using the specified configurer and returns a web interceptable.
If the specified configurer is null this method is a noop.
- Parameters:
configurer
- a web interceptors configurer- Returns:
- a web interceptable
-
configureInterceptors
Configures web route interceptors using the specified configurers and returns a web interceptable.
If the specified list of configurers is null or empty this method is a noop.
- Parameters:
configurers
- a list of web interceptors configurers- Returns:
- a web interceptable
-