Class UndertowServletWebServer
java.lang.Object
org.springframework.boot.web.embedded.undertow.UndertowWebServer
org.springframework.boot.web.embedded.undertow.UndertowServletWebServer
- All Implemented Interfaces:
WebServer
WebServer that can be used to control an embedded Undertow server. Typically
this class should be created using UndertowServletWebServerFactory and not
directly.- Since:
- 2.0.0
- Author:
- Ivan Sopov, Andy Wilkinson, EddĂș MelĂ©ndez, Christoph Dreis, Kristine Jetzke
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUndertowServletWebServer(io.undertow.Undertow.Builder builder, Iterable<HttpHandlerFactory> httpHandlerFactories, String contextPath, boolean autoStart) Create a newUndertowServletWebServerinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected io.undertow.server.HttpHandlerio.undertow.servlet.api.DeploymentManagerprotected StringMethods inherited from class org.springframework.boot.web.embedded.undertow.UndertowWebServer
getPort, shutDownGracefully, start, stop
-
Constructor Details
-
UndertowServletWebServer
public UndertowServletWebServer(io.undertow.Undertow.Builder builder, Iterable<HttpHandlerFactory> httpHandlerFactories, String contextPath, boolean autoStart) Create a newUndertowServletWebServerinstance.- Parameters:
builder- the builderhttpHandlerFactories- the handler factoriescontextPath- the root context pathautoStart- if the server should be started- Since:
- 2.3.0
-
-
Method Details
-
createHttpHandler
protected io.undertow.server.HttpHandler createHttpHandler()- Overrides:
createHttpHandlerin classUndertowWebServer
-
getStartLogMessage
- Overrides:
getStartLogMessagein classUndertowWebServer
-
getDeploymentManager
public io.undertow.servlet.api.DeploymentManager getDeploymentManager()
-