Class OptionalSslConnectionFactory
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.server.AbstractConnectionFactory
org.eclipse.jetty.server.DetectorConnectionFactory
org.eclipse.jetty.server.OptionalSslConnectionFactory
- All Implemented Interfaces:
ConnectionFactory, ConnectionFactory.Detecting, Container, Destroyable, Dumpable, Dumpable.DumpableContainer, LifeCycle
Deprecated.
A ConnectionFactory whose connections detect whether the first bytes are TLS bytes and upgrades to either a TLS connection or to another configurable connection.
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface ConnectionFactory
ConnectionFactory.Configuring, ConnectionFactory.Detecting, ConnectionFactory.UpgradingNested classes/interfaces inherited from interface ConnectionFactory.Detecting
ConnectionFactory.Detecting.DetectionNested classes/interfaces inherited from interface Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface LifeCycle
LifeCycle.Listener -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionOptionalSslConnectionFactory(SslConnectionFactory sslConnectionFactory, String nextProtocol) Deprecated.Creates a new ConnectionFactory whose connections can upgrade to TLS or another protocol. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidnextProtocol(Connector connector, EndPoint endPoint, ByteBuffer buffer) Deprecated.Callback method invoked when the detected bytes are not TLS.protected voidotherProtocol(ByteBuffer buffer, EndPoint endPoint) Deprecated.OverridenextProtocol(Connector, EndPoint, ByteBuffer)instead.Methods inherited from class DetectorConnectionFactory
detect, newConnection, upgradeToConnectionFactoryMethods inherited from class AbstractConnectionFactory
configure, findNextProtocol, findNextProtocol, getFactories, getInputBufferSize, getProtocol, getProtocols, setInputBufferSize, toStringMethods inherited from class ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, installBean, installBean, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeansMethods inherited from class AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ConnectionFactory
getProtocol, getProtocolsMethods inherited from interface Container
getCachedBeans, getEventListenersMethods inherited from interface Dumpable.DumpableContainer
isDumpable
-
Constructor Details
-
OptionalSslConnectionFactory
Deprecated.Creates a new ConnectionFactory whose connections can upgrade to TLS or another protocol.
- Parameters:
sslConnectionFactory- TheSslConnectionFactoryto use if the first bytes are TLSnextProtocol- the protocol of theConnectionFactoryto use if the first bytes are not TLS, or null to explicitly handle the non-TLS case
-
-
Method Details
-
nextProtocol
Deprecated.Callback method invoked when the detected bytes are not TLS.
This typically happens when a client is trying to connect to a TLS port using the
httpscheme (and not thehttpsscheme).- Overrides:
nextProtocolin classDetectorConnectionFactory- Parameters:
connector- The connector objectendPoint- The connection EndPoint objectbuffer- The buffer with the first bytes of the connection
-
otherProtocol
Deprecated.OverridenextProtocol(Connector, EndPoint, ByteBuffer)instead.Legacy callback method invoked when
nextProtocolisnulland the first bytes are not TLS.This typically happens when a client is trying to connect to a TLS port using the
httpscheme (and not thehttpsscheme).This method is kept around for backward compatibility.
- Parameters:
buffer- The buffer with the first bytes of the connectionendPoint- The connection EndPoint object
-
DetectorConnectionFactorywith aSslConnectionFactoryinstead.