public class TCPSTransportImpl extends TCPTransportImpl
TCPSTransport
. TCPS Transport delegates to an instance of this class.
This is used internally by the client's transport. There is usually no reason to make direct use of it.
Its functionality is best accessed via the client instance._addr, _client, _filter, _handshakeSetStreams, _httpPreflight, _idleRunnable, _inputStream, _lock, _outputStream, _socket
Constructor and Description |
---|
TCPSTransportImpl(Protocol messageType,
java.util.Properties properties,
TransportFilter filter)
Constructs a new TCPSTransportImpl instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applySocketProperties(java.util.Properties properties_)
Applies socket properties including Server Name Indication (SNI) if specified in the properties.
|
protected java.net.Socket |
createSocket()
Creates a new SSLSocket for secure communication.
|
protected void |
handshake()
Initiates the SSL/TLS handshake on the underlying SSLSocket.
|
applySocketProperty, connect, connectSocket, createStream, createTransport, disconnect, flush, flush, getIdleRunnable, handleCloseEvent, initFromClient, readQueueSize, send, setConnectTimeout, setDisconnectHandler, setExceptionListener, setIdleRunnable, setMessageHandler, setReadTimeout, setThreadCreatedHandler, setTransportFilter, socket, writeQueueSize
public TCPSTransportImpl(Protocol messageType, java.util.Properties properties, TransportFilter filter)
messageType
- The protocol message type.properties
- The properties to configure the transport.filter
- The transport filter.protected void handshake() throws java.lang.Exception
handshake
in class TCPTransportImpl
java.lang.Exception
- If an error occurs during the handshake process.protected java.net.Socket createSocket() throws java.lang.Exception
createSocket
in class TCPTransportImpl
java.lang.Exception
- If an error occurs during socket creation.protected void applySocketProperties(java.util.Properties properties_) throws java.net.SocketException, InvalidURIException
applySocketProperties
in class TCPTransportImpl
properties_
- The properties to apply to the socket.java.net.SocketException
- If an error occurs while configuring the socket.InvalidURIException
- If an invalid URI is encountered.