Package org.eclipse.jetty.server
Interface Connector
-
- All Superinterfaces:
org.eclipse.jetty.util.component.Container
,org.eclipse.jetty.util.component.Graceful
,org.eclipse.jetty.util.component.LifeCycle
- All Known Subinterfaces:
NetworkConnector
- All Known Implementing Classes:
AbstractConnector
,AbstractNetworkConnector
,LocalConnector
,NetworkTrafficSelectChannelConnector
,NetworkTrafficServerConnector
,ServerConnector
@ManagedObject("Connector Interface") public interface Connector extends org.eclipse.jetty.util.component.LifeCycle, org.eclipse.jetty.util.component.Container, org.eclipse.jetty.util.component.Graceful
A
Connector
accept 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
org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.Listener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteBufferPool
getByteBufferPool()
java.util.Collection<EndPoint>
getConnectedEndPoints()
java.util.Collection<ConnectionFactory>
getConnectionFactories()
<T> T
getConnectionFactory(java.lang.Class<T> factoryType)
ConnectionFactory
getConnectionFactory(java.lang.String nextProtocol)
ConnectionFactory
getDefaultConnectionFactory()
java.util.concurrent.Executor
getExecutor()
long
getIdleTimeout()
java.lang.String
getName()
Get the connector name if set.java.util.List<java.lang.String>
getProtocols()
org.eclipse.jetty.util.thread.Scheduler
getScheduler()
Server
getServer()
java.lang.Object
getTransport()
-
-
-
Method Detail
-
getExecutor
java.util.concurrent.Executor getExecutor()
- Returns:
- the
Executor
used to submit tasks
-
getScheduler
org.eclipse.jetty.util.thread.Scheduler getScheduler()
- Returns:
- the
Scheduler
used to schedule tasks
-
getByteBufferPool
ByteBufferPool getByteBufferPool()
- Returns:
- the
ByteBufferPool
to acquire buffers from and release buffers to
-
getConnectionFactory
ConnectionFactory getConnectionFactory(java.lang.String nextProtocol)
- Parameters:
nextProtocol
- the next protocol- Returns:
- the
ConnectionFactory
associated with the protocol name
-
getConnectionFactory
<T> T getConnectionFactory(java.lang.Class<T> factoryType)
-
getDefaultConnectionFactory
ConnectionFactory getDefaultConnectionFactory()
- Returns:
- the default
ConnectionFactory
associated with the default protocol name
-
getConnectionFactories
java.util.Collection<ConnectionFactory> getConnectionFactories()
-
getProtocols
java.util.List<java.lang.String> getProtocols()
-
getIdleTimeout
@ManagedAttribute("maximum time a connection can be idle before being closed (in ms)") long getIdleTimeout()
- Returns:
- the max idle timeout for connections in milliseconds
-
getTransport
java.lang.Object getTransport()
- Returns:
- the underlying socket, channel, buffer etc. for the connector.
-
getConnectedEndPoints
java.util.Collection<EndPoint> getConnectedEndPoints()
- Returns:
- immutable collection of connected endpoints
-
getName
java.lang.String getName()
Get the connector name if set.A
ContextHandler
may be configured with virtual hosts in the form "@connectorName" and will only serve requests from the named connector.- Returns:
- The connector name or null.
-
-