Interface ServerLifecycleListener

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default int getAdminPort​(org.eclipse.jetty.server.Server server)
      Return the local port of the last ServerConnector in the provided Server instance.
      default int getLocalPort​(org.eclipse.jetty.server.Server server)
      Return the local port of the first ServerConnector in the provided Server instance.
      default List<PortDescriptor> getPortDescriptorList​(org.eclipse.jetty.server.Server server)
      Return the ports mapped to the protocols each the ServerConnectors in the provided Server instance.
      void serverStarted​(org.eclipse.jetty.server.Server server)  
    • Method Detail

      • serverStarted

        void serverStarted​(org.eclipse.jetty.server.Server server)
      • getLocalPort

        default int getLocalPort​(org.eclipse.jetty.server.Server server)
        Return the local port of the first ServerConnector in the provided Server instance.
        Parameters:
        server - Server instance to use
        Returns:
        First local port of the server instance
      • getAdminPort

        default int getAdminPort​(org.eclipse.jetty.server.Server server)
        Return the local port of the last ServerConnector in the provided Server instance. This may be the same value as returned by getLocalPort(Server) if using the "simple" server configuration.
        Parameters:
        server - Server instance to use
        Returns:
        Last local port or the server instance
      • getPortDescriptorList

        default List<PortDescriptor> getPortDescriptorList​(org.eclipse.jetty.server.Server server)
        Return the ports mapped to the protocols each the ServerConnectors in the provided Server instance.
        Parameters:
        server - Server instance to use
        Returns:
        Map of local ports to protocols for the server instance
        Since:
        2.0