org.eclipse.jetty.util.component.Graceful, org.eclipse.jetty.util.component.LifeCycleNetworkConnectorAbstractConnector, AbstractNetworkConnector, LocalConnector, NetworkTrafficSelectChannelConnector, NetworkTrafficServerConnector, ServerConnector@ManagedObject("Connector Interface")
public interface Connector
extends org.eclipse.jetty.util.component.LifeCycle, 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.
| Modifier and Type | Method | Description |
|---|---|---|
org.eclipse.jetty.io.ByteBufferPool |
getByteBufferPool() |
|
java.util.Collection<org.eclipse.jetty.io.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() |
java.util.concurrent.Executor getExecutor()
Executor used to submit tasksorg.eclipse.jetty.util.thread.Scheduler getScheduler()
Scheduler used to schedule tasksorg.eclipse.jetty.io.ByteBufferPool getByteBufferPool()
ByteBufferPool to acquire buffers from and release buffers toConnectionFactory getConnectionFactory(java.lang.String nextProtocol)
nextProtocol - the next protocolConnectionFactory associated with the protocol name<T> T getConnectionFactory(java.lang.Class<T> factoryType)
ConnectionFactory getDefaultConnectionFactory()
ConnectionFactory associated with the default protocol namejava.util.Collection<ConnectionFactory> getConnectionFactories()
java.util.List<java.lang.String> getProtocols()
@ManagedAttribute("maximum time a connection can be idle before being closed (in ms)")
long getIdleTimeout()
java.lang.Object getTransport()
java.util.Collection<org.eclipse.jetty.io.EndPoint> getConnectedEndPoints()
java.lang.String getName()
A ContextHandler may be configured with
virtual hosts in the form "@connectorName" and will only serve
requests from the named connector.
Copyright © 1995–2018 Webtide. All rights reserved.