DetectorConnectionFactory
with a SslConnectionFactory
instead.@Deprecated public class OptionalSslConnectionFactory extends DetectorConnectionFactory
A ConnectionFactory whose connections detect whether the first bytes are TLS bytes and upgrades to either a TLS connection or to another configurable connection.
AbstractLifeCycle.AbstractLifeCycleListener
ConnectionFactory.Detecting.Detection
ConnectionFactory.Detecting, ConnectionFactory.Upgrading
Container.InheritedListener, Container.Listener
Dumpable.DumpableContainer
LifeCycle.Listener
Constructor and Description |
---|
OptionalSslConnectionFactory(SslConnectionFactory sslConnectionFactory,
java.lang.String nextProtocol)
Deprecated.
Creates a new ConnectionFactory whose connections can upgrade to TLS or another protocol.
|
Modifier and Type | Method and 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.
Override
nextProtocol(Connector, EndPoint, ByteBuffer) instead. |
detect, newConnection, upgradeToConnectionFactory
configure, findNextProtocol, findNextProtocol, getFactories, getInputBufferSize, getProtocol, getProtocols, setInputBufferSize, toString
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
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProtocol, getProtocols
isDumpable
dumpContainer, dumpIterable, dumpMapEntries, dumpObjects, dumpSelf, named
public OptionalSslConnectionFactory(SslConnectionFactory sslConnectionFactory, java.lang.String nextProtocol)
Creates a new ConnectionFactory whose connections can upgrade to TLS or another protocol.
sslConnectionFactory
- The SslConnectionFactory
to use if the first bytes are TLSnextProtocol
- the protocol of the ConnectionFactory
to use if the first bytes are not TLS,
or null to explicitly handle the non-TLS caseprotected void nextProtocol(Connector connector, EndPoint endPoint, java.nio.ByteBuffer buffer)
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 the https
scheme).
nextProtocol
in class DetectorConnectionFactory
connector
- The connector objectendPoint
- The connection EndPoint objectbuffer
- The buffer with the first bytes of the connection@Deprecated protected void otherProtocol(java.nio.ByteBuffer buffer, EndPoint endPoint)
nextProtocol(Connector, EndPoint, ByteBuffer)
instead.Legacy callback method invoked when nextProtocol
is null
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 the https
scheme).
This method is kept around for backward compatibility.
buffer
- The buffer with the first bytes of the connectionendPoint
- The connection EndPoint objectCopyright © 1995–2021 Webtide. All rights reserved.