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 public class OptionalSslConnectionFactory extends DetectorConnectionFactory
Deprecated.UseDetectorConnectionFactory
with aSslConnectionFactory
instead.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
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.ConnectionFactory
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
-
-
Constructor Summary
Constructors Constructor Description OptionalSslConnectionFactory(SslConnectionFactory sslConnectionFactory, java.lang.String nextProtocol)
Deprecated.Creates a new ConnectionFactory whose connections can upgrade to TLS or another protocol.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
nextProtocol(Connector connector, EndPoint endPoint, java.nio.ByteBuffer buffer)
Deprecated.Callback method invoked when the detected bytes are not TLS.protected void
otherProtocol(java.nio.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, 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.server.ConnectionFactory
getProtocol, getProtocols
-
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
-
-
-
Constructor Detail
-
OptionalSslConnectionFactory
public OptionalSslConnectionFactory(SslConnectionFactory sslConnectionFactory, java.lang.String nextProtocol)
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 Detail
-
nextProtocol
protected void nextProtocol(Connector connector, EndPoint endPoint, java.nio.ByteBuffer buffer)
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 protected void otherProtocol(java.nio.ByteBuffer buffer, EndPoint endPoint)
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
-
-