Package org.eclipse.jetty.server
Interface Connector
-
- All Known Subinterfaces:
NetworkConnector
- All Known Implementing Classes:
AbstractConnector,AbstractNetworkConnector,LocalConnector,NetworkTrafficSelectChannelConnector,NetworkTrafficServerConnector,ServerConnector
@ManagedObject("Connector Interface") @Deprecated(since="2021-05-27") public interface Connector extends LifeCycle, Container, Graceful
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.A
Connectoraccept connections and data from remote peers, and allows applications to send data to remote peers, by setting up the machinery needed to handle such tasks.
-
-
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 ByteBufferPoolgetByteBufferPool()Deprecated.java.util.Collection<EndPoint>getConnectedEndPoints()Deprecated.java.util.Collection<ConnectionFactory>getConnectionFactories()Deprecated.<T> TgetConnectionFactory(java.lang.Class<T> factoryType)Deprecated.ConnectionFactorygetConnectionFactory(java.lang.String nextProtocol)Deprecated.ConnectionFactorygetDefaultConnectionFactory()Deprecated.java.util.concurrent.ExecutorgetExecutor()Deprecated.longgetIdleTimeout()Deprecated.java.lang.StringgetName()Deprecated.Get the connector name if set.java.util.List<java.lang.String>getProtocols()Deprecated.SchedulergetScheduler()Deprecated.ServergetServer()Deprecated.java.lang.ObjectgetTransport()Deprecated.-
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
-
getServer
Server getServer()
Deprecated.
-
getExecutor
java.util.concurrent.Executor getExecutor()
Deprecated.- Returns:
- the
Executorused to submit tasks
-
getByteBufferPool
ByteBufferPool getByteBufferPool()
Deprecated.- Returns:
- the
ByteBufferPoolto acquire buffers from and release buffers to
-
getConnectionFactory
ConnectionFactory getConnectionFactory(java.lang.String nextProtocol)
Deprecated.- Parameters:
nextProtocol- the next protocol- Returns:
- the
ConnectionFactoryassociated with the protocol name
-
getConnectionFactory
<T> T getConnectionFactory(java.lang.Class<T> factoryType)
Deprecated.
-
getDefaultConnectionFactory
ConnectionFactory getDefaultConnectionFactory()
Deprecated.- Returns:
- the default
ConnectionFactoryassociated with the default protocol name
-
getConnectionFactories
java.util.Collection<ConnectionFactory> getConnectionFactories()
Deprecated.
-
getProtocols
java.util.List<java.lang.String> getProtocols()
Deprecated.
-
getIdleTimeout
@ManagedAttribute("maximum time a connection can be idle before being closed (in ms)") long getIdleTimeout()
Deprecated.- Returns:
- the max idle timeout for connections in milliseconds
-
getTransport
java.lang.Object getTransport()
Deprecated.- Returns:
- the underlying socket, channel, buffer etc. for the connector.
-
getConnectedEndPoints
java.util.Collection<EndPoint> getConnectedEndPoints()
Deprecated.- Returns:
- immutable collection of connected endpoints
-
getName
java.lang.String getName()
Deprecated.Get the connector name if set.A
ContextHandlermay be configured with virtual hosts in the form "@connectorName" and will only serve requests from the named connector.- Returns:
- The connector name or null.
-
-