Module io.inverno.mod.web.server
Package io.inverno.mod.web.server
Interface ErrorWebRouter<A extends ExchangeContext>
- Type Parameters:
A
- the type of the exchange context
- All Superinterfaces:
ErrorRouter<A,
,ErrorWebExchange<A>, ErrorWebRouter<A>, ErrorWebInterceptedRouter<A>, ErrorWebRouteManager<A, ErrorWebRouter<A>>, ErrorWebRouteManager<A, ErrorWebInterceptedRouter<A>>, ErrorWebInterceptorManager<A, ErrorWebInterceptedRouter<A>>, ErrorWebRoute<A>> ErrorWebInterceptable<A,
,ErrorWebInterceptedRouter<A>> ErrorWebRoutable<A,
,ErrorWebRouter<A>> ExchangeHandler<A,
,ErrorExchange<A>> Interceptable<A,
,ErrorWebExchange<A>, ErrorWebInterceptedRouter<A>, ErrorWebInterceptorManager<A, ErrorWebInterceptedRouter<A>>> ReactiveExchangeHandler<A,
,ErrorExchange<A>> Routable<A,
ErrorWebExchange<A>, ErrorWebRouter<A>, ErrorWebRouteManager<A, ErrorWebRouter<A>>, ErrorWebRoute<A>>
public interface ErrorWebRouter<A extends ExchangeContext>
extends ErrorRouter<A,ErrorWebExchange<A>,ErrorWebRouter<A>,ErrorWebInterceptedRouter<A>,ErrorWebRouteManager<A,ErrorWebRouter<A>>,ErrorWebRouteManager<A,ErrorWebInterceptedRouter<A>>,ErrorWebInterceptorManager<A,ErrorWebInterceptedRouter<A>>,ErrorWebRoute<A>>, ErrorWebRoutable<A,ErrorWebRouter<A>>, ErrorWebInterceptable<A,ErrorWebInterceptedRouter<A>>
An error web router is used to handle failing requests for which an error was thrown during the initial processing.
It determines the error web exchange handler to invoke based on the type of the error as well as the media type and language accepted by the client.
An error web router is itself an error exchange handler that can be used as error handler of a HTTP server.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault ErrorWebRouter
<A> configure
(ErrorWebRouterConfigurer<? super A> configurer) Configures the error web router using the specified configurer and returns it.default ErrorWebRouter
<A> configure
(List<ErrorWebRouterConfigurer<? super A>> configurers) Configures the web router using the specified configurers and returns it.Methods inherited from interface io.inverno.mod.web.server.ErrorWebInterceptable
configureInterceptors, configureInterceptors
Methods inherited from interface io.inverno.mod.web.server.ErrorWebRoutable
configureRoutes, configureRoutes
Methods inherited from interface io.inverno.mod.http.server.ExchangeHandler
defer, handle
Methods inherited from interface io.inverno.mod.web.server.spi.Interceptable
intercept, intercept
Methods inherited from interface io.inverno.mod.http.server.ReactiveExchangeHandler
intercept
-
Method Details
-
configure
Configures the error web router using the specified configurer and returns it.
If the specified configurer is null this method is a noop.
- Parameters:
configurer
- an error web router configurer- Returns:
- the error web router
-
configure
Configures the web router using the specified configurers and returns it.
If the specified list of configurers is null or empty this method is a noop.
- Parameters:
configurers
- a list of error web router configurers- Returns:
- the error web router
-