Package org.eclipse.jetty.server
Class NegotiatingServerConnectionFactory
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.server.AbstractConnectionFactory
-
- org.eclipse.jetty.server.NegotiatingServerConnectionFactory
-
- All Implemented Interfaces:
ConnectionFactory
,Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,LifeCycle
- Direct Known Subclasses:
ALPNServerConnectionFactory
public abstract class NegotiatingServerConnectionFactory extends AbstractConnectionFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.ConnectionFactory
ConnectionFactory.Detecting, ConnectionFactory.Upgrading
-
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.Dumpable
Dumpable.DumpableContainer
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description NegotiatingServerConnectionFactory(java.lang.String protocol, java.lang.String... negotiatedProtocols)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDefaultProtocol()
java.util.List<java.lang.String>
getNegotiatedProtocols()
Connection
newConnection(Connector connector, EndPoint endPoint)
Creates a newConnection
with the given parametersprotected abstract AbstractConnection
newServerConnection(Connector connector, EndPoint endPoint, javax.net.ssl.SSLEngine engine, java.util.List<java.lang.String> protocols, java.lang.String defaultProtocol)
void
setDefaultProtocol(java.lang.String defaultProtocol)
java.lang.String
toString()
-
Methods inherited from class org.eclipse.jetty.server.AbstractConnectionFactory
configure, findNextProtocol, findNextProtocol, getFactories, getInputBufferSize, getProtocol, getProtocols, setInputBufferSize
-
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, updateBeans
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
-
-
-
Method Detail
-
getDefaultProtocol
public java.lang.String getDefaultProtocol()
-
setDefaultProtocol
public void setDefaultProtocol(java.lang.String defaultProtocol)
-
getNegotiatedProtocols
public java.util.List<java.lang.String> getNegotiatedProtocols()
-
newConnection
public Connection newConnection(Connector connector, EndPoint endPoint)
Description copied from interface:ConnectionFactory
Creates a new
Connection
with the given parameters- Parameters:
connector
- TheConnector
creating this connectionendPoint
- theEndPoint
associated with the connection- Returns:
- a new
Connection
-
newServerConnection
protected abstract AbstractConnection newServerConnection(Connector connector, EndPoint endPoint, javax.net.ssl.SSLEngine engine, java.util.List<java.lang.String> protocols, java.lang.String defaultProtocol)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractConnectionFactory
-
-