Package com.rabbitmq.client
Class ConnectionContext
- java.lang.Object
-
- com.rabbitmq.client.ConnectionContext
-
public class ConnectionContext extends Object
The context of the freshly open TCP connection.- Since:
- 4.8.0
- See Also:
ConnectionPostProcessor
-
-
Constructor Summary
Constructors Constructor Description ConnectionContext(Socket socket, Address address, boolean ssl, SSLSession sslSession)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Address
getAddress()
The address (hostname and port) used for connecting.Socket
getSocket()
The network socket.SSLSession
getSslSession()
TheSSLSession
for a TLS connection,null
otherwise.boolean
isSsl()
Whether this is a SSL/TLS connection.
-
-
-
Constructor Detail
-
ConnectionContext
public ConnectionContext(Socket socket, Address address, boolean ssl, SSLSession sslSession)
-
-
Method Detail
-
getAddress
public Address getAddress()
The address (hostname and port) used for connecting.- Returns:
-
isSsl
public boolean isSsl()
Whether this is a SSL/TLS connection.- Returns:
-
getSslSession
public SSLSession getSslSession()
TheSSLSession
for a TLS connection,null
otherwise.- Returns:
-
-