Interface ServletWebServerFactory
- All Known Subinterfaces:
ConfigurableServletWebServerFactory
- All Known Implementing Classes:
AbstractServletWebServerFactory
,JettyServletWebServerFactory
,TomcatServletWebServerFactory
,UndertowServletWebServerFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ServletWebServerFactory
Factory interface that can be used to create aWebServer
.- Since:
- 2.0.0
- See Also:
WebServer
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WebServer
getWebServer(ServletContextInitializer... initializers)
Gets a new fully configured but pausedWebServer
instance.
Method Detail
getWebServer
WebServer getWebServer(ServletContextInitializer... initializers)
Gets a new fully configured but pausedWebServer
instance. Clients should not be able to connect to the returned server untilWebServer.start()
is called (which happens when theApplicationContext
has been fully refreshed).- Parameters:
initializers
-ServletContextInitializer
s that should be applied as the server starts- Returns:
- a fully configured and started
WebServer
- See Also:
WebServer.stop()