Package org.eclipse.jetty.server
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 org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.ConnectionFactory
ConnectionFactory.Configuring, ConnectionFactory.Detecting, ConnectionFactory.Upgrading
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.ConnectionFactory.Detecting
ConnectionFactory.Detecting.Detection
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
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOptionalSslConnectionFactory
(SslConnectionFactory sslConnectionFactory, String nextProtocol) Deprecated.Creates a new ConnectionFactory whose connections can upgrade to TLS or another protocol. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
nextProtocol
(Connector connector, EndPoint endPoint, ByteBuffer buffer) Deprecated.Callback method invoked when the detected bytes are not TLS.protected void
otherProtocol
(ByteBuffer buffer, EndPoint endPoint) Deprecated.OverridenextProtocol(Connector, EndPoint, ByteBuffer)
instead.Methods inherited from class org.eclipse.jetty.server.DetectorConnectionFactory
detect, newConnection, upgradeToConnectionFactory
Methods inherited from class org.eclipse.jetty.server.AbstractConnectionFactory
configure, findNextProtocol, findNextProtocol, getFactories, getInputBufferSize, getProtocol, getProtocols, setInputBufferSize, toString
Methods inherited from class org.eclipse.jetty.util.component.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, updateBeans
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, 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.server.ConnectionFactory
getProtocol, getProtocols
Methods inherited from interface org.eclipse.jetty.util.component.Container
getCachedBeans, getEventListeners
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Constructor Details
-
OptionalSslConnectionFactory
Deprecated.Creates a new ConnectionFactory whose connections can upgrade to TLS or another protocol.
- Parameters:
sslConnectionFactory
- TheSslConnectionFactory
to use if the first bytes are TLSnextProtocol
- the protocol of theConnectionFactory
to 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
http
scheme (and not thehttps
scheme).- Overrides:
nextProtocol
in 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
nextProtocol
isnull
and the first bytes are not TLS.This typically happens when a client is trying to connect to a TLS port using the
http
scheme (and not thehttps
scheme).This method is kept around for backward compatibility.
- Parameters:
buffer
- The buffer with the first bytes of the connectionendPoint
- The connection EndPoint object
-
DetectorConnectionFactory
with aSslConnectionFactory
instead.