Class DefaultTcpNetConnectionSupport
java.lang.Object
org.springframework.integration.ip.tcp.connection.AbstractTcpConnectionSupport
org.springframework.integration.ip.tcp.connection.DefaultTcpNetConnectionSupport
- All Implemented Interfaces:
TcpNetConnectionSupport
public class DefaultTcpNetConnectionSupport
extends AbstractTcpConnectionSupport
implements TcpNetConnectionSupport
Default implementation of
TcpNetConnectionSupport
.- Since:
- 5.0
- Author:
- Gary Russell, Artem Bilan
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateNewConnection
(Socket socket, boolean server, boolean lookupHost, ApplicationEventPublisher applicationEventPublisher, String connectionFactoryName) Create a newTcpNetConnection
object wrapping theSocket
.Methods inherited from class org.springframework.integration.ip.tcp.connection.AbstractTcpConnectionSupport
getPushbackBufferSize, isPushbackCapable, setPushbackBufferSize, setPushbackCapable
-
Constructor Details
-
DefaultTcpNetConnectionSupport
public DefaultTcpNetConnectionSupport()
-
-
Method Details
-
createNewConnection
public TcpNetConnection createNewConnection(Socket socket, boolean server, boolean lookupHost, @Nullable ApplicationEventPublisher applicationEventPublisher, String connectionFactoryName) Description copied from interface:TcpNetConnectionSupport
Create a newTcpNetConnection
object wrapping theSocket
.- Specified by:
createNewConnection
in interfaceTcpNetConnectionSupport
- Parameters:
socket
- the Socket.server
- true if this connection is a server connection.lookupHost
- true if hostname lookup should be performed, otherwise the connection will be identified using the ip address.applicationEventPublisher
- the publisher to which OPEN, CLOSE and EXCEPTION events will be sent; may be null if event publishing is not required.connectionFactoryName
- the name of the connection factory creating this connection; used during event publishing, may be null, in which case "unknown" will be used.- Returns:
- the TcpNetConnection
-