Package org.eclipse.jetty.server
Interface NetworkConnector
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
,Connector
,Container
,Graceful
,LifeCycle
- All Known Implementing Classes:
AbstractNetworkConnector
,NetworkTrafficSelectChannelConnector
,NetworkTrafficServerConnector
,ServerConnector
@Deprecated(since="2021-05-27") public interface NetworkConnector extends Connector, java.io.Closeable
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.A
Connector
for TCP/IP network connectors
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.Listener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Graceful
Graceful.Shutdown
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated.Performs the activities needed to close the network communication (for example, to stop accepting network connections).java.lang.String
getHost()
Deprecated.int
getLocalPort()
Deprecated.int
getPort()
Deprecated.boolean
isOpen()
Deprecated.A Connector may be opened and not started (to reserve a port) or closed and running (to allow graceful shutdown of existing connections)void
open()
Deprecated.Performs the activities needed to open the network communication (for example, to start accepting incoming network connections).-
Methods inherited from interface org.eclipse.jetty.server.Connector
getByteBufferPool, getConnectedEndPoints, getConnectionFactories, getConnectionFactory, getConnectionFactory, getDefaultConnectionFactory, getExecutor, getIdleTimeout, getName, getProtocols, getScheduler, getServer, getTransport
-
Methods inherited from interface org.eclipse.jetty.util.component.Container
addBean, addBean, addEventListener, getBean, getBeans, getBeans, getContainedBeans, isManaged, manage, removeBean, removeEventListener, unmanage
-
Methods inherited from interface org.eclipse.jetty.util.component.Graceful
isShutdown, shutdown
-
Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
-
-
-
Method Detail
-
open
void open() throws java.io.IOException
Deprecated.Performs the activities needed to open the network communication (for example, to start accepting incoming network connections).
- Throws:
java.io.IOException
- if this connector cannot be opened- See Also:
close()
-
close
void close()
Deprecated.Performs the activities needed to close the network communication (for example, to stop accepting network connections).
Once a connector has been closed, it cannot be opened again without first callingLifeCycle.stop()
and it will not be active again until a subsequent call toLifeCycle.start()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
isOpen
boolean isOpen()
Deprecated.A Connector may be opened and not started (to reserve a port) or closed and running (to allow graceful shutdown of existing connections)- Returns:
- True if the connector is Open.
-
getHost
java.lang.String getHost()
Deprecated.- Returns:
- The hostname representing the interface to which this connector will bind, or null for all interfaces.
-
getPort
int getPort()
Deprecated.- Returns:
- The configured port for the connector or 0 if any available port may be used.
-
getLocalPort
int getLocalPort()
Deprecated.- Returns:
- The actual port the connector is listening on, or -1 if it has not been opened, or -2 if it has been closed.
-
-