Interface ServletWebServerFactory
- All Superinterfaces:
- WebServerFactory
- All Known Subinterfaces:
- ConfigurableServletWebServerFactory
- All Known Implementing Classes:
- JettyServletWebServerFactory, TomcatServletWebServerFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Factory interface that can be used to create a 
WebServer.- Since:
- 4.0.0
- Author:
- Phillip Webb
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptiongetWebServer(ServletContextInitializer... initializers) Gets a new fully configured but pausedWebServerinstance.
- 
Method Details- 
getWebServerGets a new fully configured but pausedWebServerinstance. Clients should not be able to connect to the returned server untilWebServer.start()is called (which happens when theApplicationContexthas been fully refreshed).- Parameters:
- initializers-- ServletContextInitializers that should be applied as the server starts
- Returns:
- a fully configured and started WebServer
- See Also:
 
 
-