类 UndertowWebServer
- java.lang.Object
- org.springframework.boot.web.embedded.undertow.UndertowWebServer
- 所有已实现的接口:
WebServer
public class UndertowWebServer extends Object implements WebServer
WebServer
that can be used to control an Undertow web server. Usually this class should be created using theUndertowReactiveWebServerFactory
and not directly.- 从以下版本开始:
- 2.0.0
构造器概要
构造器 构造器 说明 UndertowWebServer(io.undertow.Undertow.Builder builder, boolean autoStart)
Create a newUndertowWebServer
instance.UndertowWebServer(io.undertow.Undertow.Builder builder, boolean autoStart, Closeable closeable)
Create a newUndertowWebServer
instance.
构造器详细资料
UndertowWebServer
public UndertowWebServer(io.undertow.Undertow.Builder builder, boolean autoStart)
Create a newUndertowWebServer
instance.- 参数:
builder
- the builderautoStart
- if the server should be started
UndertowWebServer
public UndertowWebServer(io.undertow.Undertow.Builder builder, boolean autoStart, Closeable closeable)
Create a newUndertowWebServer
instance.- 参数:
builder
- the builderautoStart
- if the server should be startedcloseable
- called when the server is stopped- 从以下版本开始:
- 2.0.4
方法详细资料
start
public void start() throws WebServerException
从接口复制的说明:WebServer
Starts the web server. Calling this method on an already started server has no effect.- 指定者:
start
在接口中WebServer
- 抛出:
WebServerException
- if the server cannot be started
stop
public void stop() throws WebServerException
从接口复制的说明:WebServer
Stops the web server. Calling this method on an already stopped server has no effect.- 指定者:
stop
在接口中WebServer
- 抛出:
WebServerException
- if the server cannot be stopped