public class UndertowServletWebServer extends UndertowWebServer
WebServer
that can be used to control an embedded Undertow server. Typically
this class should be created using UndertowServletWebServerFactory
and not
directly.UndertowServletWebServerFactory
Constructor and Description |
---|
UndertowServletWebServer(io.undertow.Undertow.Builder builder,
Iterable<HttpHandlerFactory> httpHandlerFactories,
String contextPath,
boolean autoStart)
Create a new
UndertowServletWebServer instance. |
Modifier and Type | Method and Description |
---|---|
protected io.undertow.server.HttpHandler |
createHttpHandler() |
io.undertow.servlet.api.DeploymentManager |
getDeploymentManager() |
protected String |
getStartLogMessage() |
getPort, shutDownGracefully, start, stop
public UndertowServletWebServer(io.undertow.Undertow.Builder builder, Iterable<HttpHandlerFactory> httpHandlerFactories, String contextPath, boolean autoStart)
UndertowServletWebServer
instance.builder
- the builderhttpHandlerFactories
- the handler factoriescontextPath
- the root context pathautoStart
- if the server should be startedprotected io.undertow.server.HttpHandler createHttpHandler()
createHttpHandler
in class UndertowWebServer
protected String getStartLogMessage()
getStartLogMessage
in class UndertowWebServer
public io.undertow.servlet.api.DeploymentManager getDeploymentManager()