Module io.inverno.mod.web.server
Package io.inverno.mod.web.server
Interface WebServerControllerConfigurer<A extends ExchangeContext>
- Type Parameters:
A
- the type of the exchange context
- All Superinterfaces:
ErrorRouterConfigurer<A,
,ErrorWebExchange<A>, ErrorWebRouter<A>, ErrorWebInterceptedRouter<A>, ErrorWebRouteManager<A, ErrorWebRouter<A>>, ErrorWebRouteManager<A, ErrorWebInterceptedRouter<A>>, ErrorWebInterceptorManager<A, ErrorWebInterceptedRouter<A>>, ErrorWebRoute<A>> ErrorWebRouterConfigurer<A>
,RouterConfigurer<A,
,WebExchange<A>, WebRouter<A>, WebInterceptedRouter<A>, WebRouteManager<A, WebRouter<A>>, WebRouteManager<A, WebInterceptedRouter<A>>, WebInterceptorManager<A, WebInterceptedRouter<A>>, WebRoute<A>> WebRouterConfigurer<A>
public interface WebServerControllerConfigurer<A extends ExchangeContext>
extends WebRouterConfigurer<A>, ErrorWebRouterConfigurer<A>
Configures the routes and the interceptors of the WebRouter
and ErrorWebRouter
used to create the ServerController
injected in the HTTP server to process client requests.
This configurer also exposes a createContext()
method used to create the exchange context eventually attached to an exchange and an error exchange.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault A
Creates a context matching routes and interceptors requirement.Methods inherited from interface io.inverno.mod.web.server.spi.ErrorRouterConfigurer
configure
Methods inherited from interface io.inverno.mod.web.server.spi.RouterConfigurer
configure
-
Method Details
-
createContext
Creates a context matching routes and interceptors requirement.
This context supplier is used by the Web Server controller to create a specific context attached to
WebExchange
andErrorWebExchange
required by the routes and interceptors configured by the configurer.- Returns:
- a new context instance
-