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>>

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 Details

    • configure

      default ErrorWebRouter<A> configure(ErrorWebRouterConfigurer<? super A> configurer)

      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

      default ErrorWebRouter<A> configure(List<ErrorWebRouterConfigurer<? super A>> configurers)

      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