Class SocketInfo
java.lang.Object
org.springframework.integration.ip.tcp.connection.SocketInfo
public class SocketInfo extends Object
Simple wrapper around
Socket providing access to getters (except
input/output streams).- Since:
- 4.2.5
- Author:
- Gary Russell
-
Constructor Summary
Constructors Constructor Description SocketInfo(Socket socket) -
Method Summary
Modifier and Type Method Description SocketChannelgetChannel()InetAddressgetInetAddress()booleangetKeepAlive()InetAddressgetLocalAddress()intgetLocalPort()SocketAddressgetLocalSocketAddress()booleangetOOBInline()intgetPort()intgetReceiveBufferSize()SocketAddressgetRemoteSocketAddress()booleangetReuseAddress()intgetSendBufferSize()intgetSoLinger()intgetSoTimeout()booleangetTcpNoDelay()intgetTrafficClass()booleanisClosed()booleanisConnected()booleanisInputShutdown()booleanisOutputShutdown()StringtoString()
-
Constructor Details
-
Method Details
-
getInetAddress
-
getLocalAddress
-
getPort
public int getPort() -
getLocalPort
public int getLocalPort() -
getRemoteSocketAddress
-
getLocalSocketAddress
-
getChannel
-
getTcpNoDelay
- Throws:
SocketException
-
getSoLinger
- Throws:
SocketException
-
getOOBInline
- Throws:
SocketException
-
getSoTimeout
- Throws:
SocketException
-
getSendBufferSize
- Throws:
SocketException
-
getReceiveBufferSize
- Throws:
SocketException
-
getKeepAlive
- Throws:
SocketException
-
getTrafficClass
- Throws:
SocketException
-
getReuseAddress
- Throws:
SocketException
-
toString
-
isConnected
public boolean isConnected() -
isClosed
public boolean isClosed() -
isInputShutdown
public boolean isInputShutdown() -
isOutputShutdown
public boolean isOutputShutdown()
-