Class DefaultTcpSocketSupport
java.lang.Object
org.springframework.integration.ip.tcp.connection.DefaultTcpSocketSupport
- All Implemented Interfaces:
TcpSocketSupport
public class DefaultTcpSocketSupport extends Object implements TcpSocketSupport
Default implementation of
TcpSocketSupport
; makes no
changes to sockets.- Since:
- 2.2
- Author:
- Gary Russell
-
Constructor Summary
Constructors Constructor Description DefaultTcpSocketSupport()
Construct an instance with host verification enabled.DefaultTcpSocketSupport(boolean sslVerifyHost)
Construct an instance with the provided sslVerifyHost. -
Method Summary
Modifier and Type Method Description void
postProcessServerSocket(ServerSocket serverSocket)
No-Op.void
postProcessSocket(Socket socket)
Enables host verification for SSL, if so configured.
-
Constructor Details
-
DefaultTcpSocketSupport
public DefaultTcpSocketSupport()Construct an instance with host verification enabled. -
DefaultTcpSocketSupport
public DefaultTcpSocketSupport(boolean sslVerifyHost)Construct an instance with the provided sslVerifyHost.- Parameters:
sslVerifyHost
- true to verify host during SSL handshake.- Since:
- 5.0.8.
-
-
Method Details
-
postProcessServerSocket
No-Op.- Specified by:
postProcessServerSocket
in interfaceTcpSocketSupport
- Parameters:
serverSocket
- The ServerSocket
-
postProcessSocket
Enables host verification for SSL, if so configured.- Specified by:
postProcessSocket
in interfaceTcpSocketSupport
- Parameters:
socket
- The Socket
-