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,
java.lang.Iterable<HttpHandlerFactory> httpHandlerFactories,
java.lang.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 java.lang.String |
getStartLogMessage() |
getPort, shutDownGracefully, start, stop
public UndertowServletWebServer(io.undertow.Undertow.Builder builder, java.lang.Iterable<HttpHandlerFactory> httpHandlerFactories, java.lang.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 java.lang.String getStartLogMessage()
getStartLogMessage
in class UndertowWebServer
public io.undertow.servlet.api.DeploymentManager getDeploymentManager()