public class ServletWebServerInitializedEvent extends WebServerInitializedEvent
ServletWebServerApplicationContext is refreshed
 and the WebServer is ready. Useful for obtaining the local port of a running
 server.
 Normally it will have been started, but listeners are free to inspect the server and stop and start it if they want to.
source| Constructor and Description | 
|---|
ServletWebServerInitializedEvent(WebServer source,
                                ServletWebServerApplicationContext applicationContext)  | 
| Modifier and Type | Method and Description | 
|---|---|
ServletWebServerApplicationContext | 
getApplicationContext()
Access the application context that the server was created in. 
 | 
String | 
getServerId()
Access the  
WebServer Id used internally to differentiate application /
 management servers. | 
getSource, getWebServertoStringpublic ServletWebServerInitializedEvent(WebServer source, ServletWebServerApplicationContext applicationContext)
public ServletWebServerApplicationContext getApplicationContext()
getApplicationContext in class WebServerInitializedEventpublic String getServerId()
WebServerInitializedEventWebServer Id used internally to differentiate application /
 management servers.getServerId in class WebServerInitializedEventCopyright © 2018 Pivotal Software, Inc.. All rights reserved.