org.springframework.boot.web.context

Class WebServerInitializedEvent

    • Constructor Detail

      • WebServerInitializedEvent

        protected WebServerInitializedEvent(WebServer webServer)
    • Method Detail

      • getWebServer

        public WebServer getWebServer()
        Access the WebServer.
        Returns:
        the embedded web server
      • getApplicationContext

        public abstract WebServerApplicationContext getApplicationContext()
        Access 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.
        Returns:
        the applicationContext that the server was created from

Copyright © 2020 Pivotal Software, Inc.. All rights reserved.