Interface WebInterceptedRouter<A extends ExchangeContext>

Type Parameters:
A - the type of the exchange context
All Superinterfaces:
Interceptable<A,WebExchange<A>,WebInterceptedRouter<A>,WebInterceptorManager<A,WebInterceptedRouter<A>>>, InterceptedRouter<A,WebExchange<A>,WebRouter<A>,WebInterceptedRouter<A>,WebRouteManager<A,WebRouter<A>>,WebRouteManager<A,WebInterceptedRouter<A>>,WebInterceptorManager<A,WebInterceptedRouter<A>>,WebRoute<A>>, Routable<A,WebExchange<A>,WebInterceptedRouter<A>,WebRouteManager<A,WebInterceptedRouter<A>>,WebRoute<A>>, WebInterceptable<A,WebInterceptedRouter<A>>, WebRoutable<A,WebInterceptedRouter<A>>

A web intercepted router attaches interceptors to route handler based on the parameters of the Web route including the path or path pattern, the method, the content type and the accepted content type and language.

Since:
1.3
Author:
Jeremy Kuhn
  • Method Details

    • configure

      WebInterceptedRouter<A> configure(WebRouterConfigurer<? super A> configurer)

      Configures the web intercepted router using the specified web router configurer and returns it.

      Web interceptors previously defined in this router will be applied first to the routes created within the configurer.

      If the specified configurer is null this method is a noop.

      Parameters:
      configurer - a web router configurer
      Returns:
      the web intercepted router
    • configure

      default WebInterceptedRouter<A> configure(List<WebRouterConfigurer<? super A>> configurers)

      Configures the web intercepted router using the specified configurers and returns it.

      Web interceptors previously defined in this router will be applied first to the routes created within the configurers.

      If the specified list of configurers is null or empty this method is a noop.

      Parameters:
      configurers - a list of web router configurers
      Returns:
      the web intercepted router