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,
io.undertow.servlet.api.DeploymentManager manager,
String contextPath,
boolean useForwardHeaders,
boolean autoStart,
Compression compression)
Deprecated.
since 2.3.0 for removal in 2.5.0 in favor of
UndertowServletWebServer(io.undertow.Undertow.Builder, Iterable, String, boolean) |
UndertowServletWebServer(io.undertow.Undertow.Builder builder,
io.undertow.servlet.api.DeploymentManager manager,
String contextPath,
boolean useForwardHeaders,
boolean autoStart,
Compression compression,
String serverHeader)
Deprecated.
since 2.3.0 for removal in 2.5.0 in favor of
UndertowServletWebServer(io.undertow.Undertow.Builder, Iterable, String, boolean) |
UndertowServletWebServer(io.undertow.Undertow.Builder builder,
io.undertow.servlet.api.DeploymentManager manager,
String contextPath,
boolean autoStart,
Compression compression)
Deprecated.
since 2.3.0 for removal in 2.5.0 in favor of
UndertowServletWebServer(io.undertow.Undertow.Builder, Iterable, String, boolean) |
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
@Deprecated public UndertowServletWebServer(io.undertow.Undertow.Builder builder, io.undertow.servlet.api.DeploymentManager manager, String contextPath, boolean autoStart, Compression compression)
UndertowServletWebServer(io.undertow.Undertow.Builder, Iterable, String, boolean)
UndertowServletWebServer
instance.builder
- the buildermanager
- the deployment managercontextPath
- the root context pathautoStart
- if the server should be startedcompression
- compression configuration@Deprecated public UndertowServletWebServer(io.undertow.Undertow.Builder builder, io.undertow.servlet.api.DeploymentManager manager, String contextPath, boolean useForwardHeaders, boolean autoStart, Compression compression)
UndertowServletWebServer(io.undertow.Undertow.Builder, Iterable, String, boolean)
UndertowServletWebServer
instance.builder
- the buildermanager
- the deployment managercontextPath
- the root context pathuseForwardHeaders
- if x-forward headers should be usedautoStart
- if the server should be startedcompression
- compression configuration@Deprecated public UndertowServletWebServer(io.undertow.Undertow.Builder builder, io.undertow.servlet.api.DeploymentManager manager, String contextPath, boolean useForwardHeaders, boolean autoStart, Compression compression, String serverHeader)
UndertowServletWebServer(io.undertow.Undertow.Builder, Iterable, String, boolean)
UndertowServletWebServer
instance.builder
- the buildermanager
- the deployment managercontextPath
- the root context pathuseForwardHeaders
- if x-forward headers should be usedautoStart
- if the server should be startedcompression
- compression configurationserverHeader
- string to be used in HTTP headerpublic 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()