Module io.inverno.mod.web.server
Package io.inverno.mod.web.server.spi
Interface ErrorInterceptorManager<A extends ExchangeContext,B extends ErrorExchange<A>,C extends Interceptable<A,B,C,D>,D extends ErrorInterceptorManager<A,B,C,D>>
- Type Parameters:
A
- the type of the exchange contextB
- the type of error exchange handled by the interceptorC
- the interceptable typeD
- the error interceptor manager type
- All Superinterfaces:
InterceptorManager<A,
B, C, D>
- All Known Subinterfaces:
ErrorWebInterceptorManager<A,
B>
public interface ErrorInterceptorManager<A extends ExchangeContext,B extends ErrorExchange<A>,C extends Interceptable<A,B,C,D>,D extends ErrorInterceptorManager<A,B,C,D>>
extends InterceptorManager<A,B,C,D>
Base error interceptor manager interface.
An error interceptor manager is used to configure interceptors in a ErrorInterceptedRouter
. It is created by an error
router and allows to define interceptors in an intercepting router.
A typical implementation should define methods to set criteria used by the router to match an error route to an interceptor and an exchange interceptor that is eventually chained with the error route exchange handler.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Method Summary
Methods inherited from interface io.inverno.mod.web.server.spi.InterceptorManager
interceptor, interceptors
-
Method Details
-
error
Specifies the type of errors accepted by the interceptor.
- Parameters:
error
- a type of error- Returns:
- the error interceptor manager
- See Also:
-