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,
java.lang.String contextPath,
boolean useForwardHeaders,
boolean autoStart,
Compression compression)
Deprecated.
since 2.3.0 in favor of
UndertowServletWebServer(io.undertow.Undertow.Builder, Iterable, String, boolean) |
UndertowServletWebServer(io.undertow.Undertow.Builder builder,
io.undertow.servlet.api.DeploymentManager manager,
java.lang.String contextPath,
boolean useForwardHeaders,
boolean autoStart,
Compression compression,
java.lang.String serverHeader)
Deprecated.
since 2.3.0 in favor of
UndertowServletWebServer(io.undertow.Undertow.Builder, Iterable, String, boolean) |
UndertowServletWebServer(io.undertow.Undertow.Builder builder,
io.undertow.servlet.api.DeploymentManager manager,
java.lang.String contextPath,
boolean autoStart,
Compression compression)
Deprecated.
since 2.3.0 in favor of
UndertowServletWebServer(io.undertow.Undertow.Builder, Iterable, String, boolean) |
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
@Deprecated public UndertowServletWebServer(io.undertow.Undertow.Builder builder, io.undertow.servlet.api.DeploymentManager manager, java.lang.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, java.lang.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, java.lang.String contextPath, boolean useForwardHeaders, boolean autoStart, Compression compression, java.lang.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, 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()