org.springframework.boot.web.embedded.jetty

Class JettyWebServer

    • Constructor Detail

      • JettyWebServer

        public JettyWebServer(org.eclipse.jetty.server.Server server)
        Create a new JettyWebServer instance.
        Parameters:
        server - the underlying Jetty server
      • JettyWebServer

        public JettyWebServer(org.eclipse.jetty.server.Server server,
                              boolean autoStart)
        Create a new JettyWebServer instance.
        Parameters:
        server - the underlying Jetty server
        autoStart - if auto-starting the server
    • Method Detail

      • stop

        public void stop()
        Description copied from interface: WebServer
        Stops the web server. Calling this method on an already stopped server has no effect.
        Specified by:
        stop in interface WebServer
      • getPort

        public int getPort()
        Description copied from interface: WebServer
        Return the port this server is listening on.
        Specified by:
        getPort in interface WebServer
        Returns:
        the port (or -1 if none)
      • getServer

        public org.eclipse.jetty.server.Server getServer()
        Returns access to the underlying Jetty Server.
        Returns:
        the Jetty server

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