Interface WebRouter<A extends ExchangeContext>

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

A web router is used to handle HTTP requests.

It determines the web exchange handler to invoke based on the parameters of the request including the absolute path, the method, the content type and the accepted content type and language.

An web router is itself an exchange handler that can be used as root handler of a HTTP server.

Since:
1.0
Author:
Jeremy Kuhn
See Also:
  • Method Details

    • configure

      default WebRouter<A> configure(WebRouterConfigurer<? super A> configurer)

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

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

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

      default WebRouter<A> configure(List<WebRouterConfigurer<? 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 web router configurers
      Returns:
      the web router