Package org.eclipse.jetty.server
Class AbstractConnectionFactory
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.server.AbstractConnectionFactory
- All Implemented Interfaces:
ConnectionFactory,org.eclipse.jetty.util.component.Container,org.eclipse.jetty.util.component.Destroyable,org.eclipse.jetty.util.component.Dumpable,org.eclipse.jetty.util.component.Dumpable.DumpableContainer,org.eclipse.jetty.util.component.LifeCycle
- Direct Known Subclasses:
DetectorConnectionFactory,HttpConnectionFactory,NegotiatingServerConnectionFactory,SslConnectionFactory
@ManagedObject
public abstract class AbstractConnectionFactory
extends org.eclipse.jetty.util.component.ContainerLifeCycle
implements ConnectionFactory
Provides the common handling for ConnectionFactory implementations including:
- Protocol identification
- Configuration of new Connections:
- Setting inputbuffer size
- Calling
Connection.addListener(Connection.Listener)for all Connection.Listener instances found as beans on theConnectorand thisConnectionFactory
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.server.ConnectionFactory
ConnectionFactory.Detecting, ConnectionFactory.UpgradingNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener -
Field Summary
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPINGFields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractConnectionFactory(String protocol) protectedAbstractConnectionFactory(String... protocols) -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractConnectionconfigure(AbstractConnection connection, Connector connector, EndPoint endPoint) protected StringfindNextProtocol(Connector connector) protected static StringfindNextProtocol(Connector connector, String currentProtocol) static ConnectionFactory[]getFactories(org.eclipse.jetty.util.ssl.SslContextFactory sslContextFactory, ConnectionFactory... factories) intvoidsetInputBufferSize(int size) toString()Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.server.ConnectionFactory
newConnectionMethods inherited from interface org.eclipse.jetty.util.component.Dumpable
dumpSelfMethods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Constructor Details
-
AbstractConnectionFactory
-
AbstractConnectionFactory
-
-
Method Details
-
getProtocol
- Specified by:
getProtocolin interfaceConnectionFactory- Returns:
- A string representing the primary protocol name.
-
getProtocols
- Specified by:
getProtocolsin interfaceConnectionFactory- Returns:
- A list of alternative protocol names/versions including the primary protocol.
-
getInputBufferSize
@ManagedAttribute("The buffer size used to read from the network") public int getInputBufferSize() -
setInputBufferSize
public void setInputBufferSize(int size) -
findNextProtocol
-
findNextProtocol
-
configure
protected AbstractConnection configure(AbstractConnection connection, Connector connector, EndPoint endPoint) -
toString
- Overrides:
toStringin classorg.eclipse.jetty.util.component.AbstractLifeCycle
-
getFactories
public static ConnectionFactory[] getFactories(org.eclipse.jetty.util.ssl.SslContextFactory sslContextFactory, ConnectionFactory... factories)
-