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.AbstractLifeCycleListenerConnectionFactory.Detecting.DetectionConnectionFactory.Detecting, ConnectionFactory.UpgradingContainer.InheritedListener, Container.ListenerLifeCycle.Listener| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
_nextProtocol
Deprecated.
|
private static Logger |
LOG
Deprecated.
|
| 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, upgradeToConnectionFactoryconfigure, findNextProtocol, findNextProtocol, getFactories, getInputBufferSize, getProtocol, getProtocols, setInputBufferSize, toStringaddBean, 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, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProtocol, getProtocolsdumpContainer, dumpIterable, dumpMapEntries, dumpObjects, dumpSelf, namedprivate static final Logger LOG
private final java.lang.String _nextProtocol
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 DetectorConnectionFactoryconnector - 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 object