public interface ServerLifecycleListener extends EventListener
| Modifier and Type | Method and 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) |
void serverStarted(org.eclipse.jetty.server.Server server)
default int getLocalPort(org.eclipse.jetty.server.Server server)
ServerConnector in the
provided Server instance.server - Server instance to usedefault int getAdminPort(org.eclipse.jetty.server.Server server)
ServerConnector in the
provided Server instance. This may be the same value as returned
by getLocalPort(Server) if using the "simple" server configuration.server - Server instance to usedefault List<PortDescriptor> getPortDescriptorList(org.eclipse.jetty.server.Server server)
ServerConnectors in the
provided Server instance.server - Server instance to useCopyright © 2021. All rights reserved.