Class ReactiveWebServerInitializedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.boot.web.server.context.WebServerInitializedEvent
org.springframework.boot.web.server.reactive.context.ReactiveWebServerInitializedEvent
- All Implemented Interfaces:
- Serializable
Event to be published after the 
WebServer is ready. Useful for obtaining the
local port of a running server.- Since:
- 4.0.0
- Author:
- Brian Clozel, Stephane Nicoll
- See Also:
- 
Field SummaryFields inherited from class EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionReactiveWebServerInitializedEvent(WebServer webServer, ReactiveWebServerApplicationContext applicationContext) 
- 
Method SummaryModifier and TypeMethodDescriptionAccess the application context that the server was created in.Methods inherited from class WebServerInitializedEventgetSource, getWebServerMethods inherited from class ApplicationEventgetTimestampMethods inherited from class EventObjecttoString
- 
Constructor Details- 
ReactiveWebServerInitializedEventpublic ReactiveWebServerInitializedEvent(WebServer webServer, ReactiveWebServerApplicationContext applicationContext) 
 
- 
- 
Method Details- 
getApplicationContextDescription copied from class:WebServerInitializedEventAccess the application context that the server was created in. Sometimes it is prudent to check that this matches expectations (like being equal to the current context) before acting on the server itself.- Specified by:
- getApplicationContextin class- WebServerInitializedEvent
- Returns:
- the applicationContext that the server was created from
 
 
-