Deprecated
Use DetectorConnectionFactory with a SslConnectionFactory 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.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | OptionalSslConnectionFactory(SslConnectionFactory
The sslConnectionFactory, String SslConnectionFactory to use if the first bytes are TLSthe protocol of the nextProtocol)ConnectionFactory to use if the first bytes are not TLS,
or null to explicitly handle the non-TLS caseCreates a new ConnectionFactory whose connections can upgrade to TLS or another protocol. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | nextProtocol(Connector
The connector object connector, EndPoint The connection EndPoint object endPoint, ByteBuffer The buffer with the first bytes of the connection buffer)Overrides org. Callback method invoked when the detected bytes are not TLS. |
| protected void | otherProtocol(ByteBuffer
The buffer with the first bytes of the connection buffer, EndPoint The connection EndPoint object endPoint)
Deprecated
Override
nextProtocol(Connector, EndPoint, ByteBuffer) instead.
Legacy callback method invoked when |
| _nextProtocol | back to summary |
|---|---|
| private final String _nextProtocol | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides org. | |
| OptionalSslConnectionFactory | back to summary |
|---|---|
| public OptionalSslConnectionFactory(SslConnectionFactory sslConnectionFactory, String nextProtocol) Creates a new ConnectionFactory whose connections can upgrade to TLS or another protocol.
| |
| nextProtocol | back to summary |
|---|---|
| protected void nextProtocol(Connector connector, EndPoint endPoint, ByteBuffer buffer) Overrides org. 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
| |
| otherProtocol | back to summary |
|---|---|
| protected void otherProtocol(ByteBuffer buffer, EndPoint endPoint)
Deprecated Override Legacy callback method invoked when This typically happens when a client is trying to connect to a TLS
port using the This method is kept around for backward compatibility.
| |