org.springframework.boot.web.server

Interface WebServer

    • Method Detail

      • start

        void start()
            throws WebServerException
        Starts the web server. Calling this method on an already started server has no effect.
        Throws:
        WebServerException - if the server cannot be started
      • stop

        void stop()
           throws WebServerException
        Stops the web server. Calling this method on an already stopped server has no effect.
        Throws:
        WebServerException - if the server cannot be stopped
      • getPort

        int getPort()
        Return the port this server is listening on.
        Returns:
        the port (or -1 if none)

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