接口的使用
org.springframework.boot.web.server.WebServer
使用WebServer的程序包
程序包
说明
Web integrations with Spring's
ApplicationContext
.Embedded reactive and servlet web server implementations backed by Jetty.
Embedded reactive web server implementation backed by Netty.
Embedded reactive and servlet web server implementations backed by Tomcat.
Embedded reactive and servlet web server implementations backed by Undertow.
Reactive based web integrations with Spring's
ApplicationContext
.Reactive web server abstractions.
Servlet based web integrations with Spring's
WebApplicationContext
.Servlet web server abstractions.
-
org.springframework.boot.web.context中WebServer的使用
修饰符和类型方法说明WebServerInitializedEvent.getSource()
Access the source of the event (anWebServer
).WebServerApplicationContext.getWebServer()
Returns theWebServer
that was created by the context ornull
if the server has not yet been created.WebServerInitializedEvent.getWebServer()
Access theWebServer
.限定符构造器说明WebServerGracefulShutdownLifecycle
(WebServer webServer) Creates a newWebServerGracefulShutdownLifecycle
that will gracefully shut down the givenwebServer
.protected
WebServerInitializedEvent
(WebServer webServer) -
org.springframework.boot.web.embedded.jetty中WebServer的使用
修饰符和类型方法说明JettyReactiveWebServerFactory.getWebServer
(HttpHandler httpHandler) JettyServletWebServerFactory.getWebServer
(ServletContextInitializer... initializers) -
org.springframework.boot.web.embedded.netty中WebServer的使用
-
org.springframework.boot.web.embedded.tomcat中WebServer的使用
修饰符和类型方法说明TomcatReactiveWebServerFactory.getWebServer
(HttpHandler httpHandler) TomcatServletWebServerFactory.getWebServer
(ServletContextInitializer... initializers) -
org.springframework.boot.web.embedded.undertow中WebServer的使用
修饰符和类型类说明class
WebServer
that can be used to control an embedded Undertow server.class
WebServer
that can be used to control an Undertow web server.修饰符和类型方法说明UndertowReactiveWebServerFactory.getWebServer
(HttpHandler httpHandler) UndertowServletWebServerFactory.getWebServer
(ServletContextInitializer... initializers) -
org.springframework.boot.web.reactive.context中WebServer的使用
修饰符和类型方法说明ReactiveWebServerApplicationContext.getWebServer()
Returns theWebServer
that was created by the context ornull
if the server has not yet been created.限定符构造器说明ReactiveWebServerInitializedEvent
(WebServer webServer, ReactiveWebServerApplicationContext applicationContext) -
org.springframework.boot.web.reactive.server中WebServer的使用
修饰符和类型方法说明ReactiveWebServerFactory.getWebServer
(HttpHandler httpHandler) Gets a new fully configured but pausedWebServer
instance. -
org.springframework.boot.web.servlet.context中WebServer的使用
修饰符和类型方法说明ServletWebServerApplicationContext.getWebServer()
Returns theWebServer
that was created by the context ornull
if the server has not yet been created.限定符构造器说明ServletWebServerInitializedEvent
(WebServer webServer, ServletWebServerApplicationContext applicationContext) -
org.springframework.boot.web.servlet.server中WebServer的使用
修饰符和类型方法说明ServletWebServerFactory.getWebServer
(ServletContextInitializer... initializers) Gets a new fully configured but pausedWebServer
instance.