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
ConstructorDescriptionUndertowServletWebServer
(io.undertow.Undertow.Builder builder, Iterable<HttpHandlerFactory> httpHandlerFactories, String contextPath, boolean autoStart) Create a newUndertowServletWebServer
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected io.undertow.server.HttpHandler
io.undertow.servlet.api.DeploymentManager
protected String
Methods 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 newUndertowServletWebServer
instance.- 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:
createHttpHandler
in classUndertowWebServer
-
getStartLogMessage
- Overrides:
getStartLogMessage
in classUndertowWebServer
-
getDeploymentManager
public io.undertow.servlet.api.DeploymentManager getDeploymentManager()
-