Module io.inverno.mod.web.server
Package io.inverno.mod.web.server
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>>
public interface WebRouter<A extends ExchangeContext>
extends Router<A,WebExchange<A>,WebRouter<A>,WebInterceptedRouter<A>,WebRouteManager<A,WebRouter<A>>,WebRouteManager<A,WebInterceptedRouter<A>>,WebInterceptorManager<A,WebInterceptedRouter<A>>,WebRoute<A>>, WebRoutable<A,WebRouter<A>>, WebInterceptable<A,WebInterceptedRouter<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 Summary
Modifier and TypeMethodDescriptionconfigure
(WebRouterConfigurer<? super A> configurer) Configures the web router using the specified configurer and returns it.configure
(List<WebRouterConfigurer<? super A>> configurers) Configures the web router using the specified configurers and returns it.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
Methods inherited from interface io.inverno.mod.web.server.WebInterceptable
configureInterceptors, configureInterceptors
Methods inherited from interface io.inverno.mod.web.server.WebRoutable
configureRoutes, configureRoutes, webSocketRoute, webSocketRoute
-
Method Details
-
configure
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
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
-