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 SocketChannel
getChannel()
InetAddress
getInetAddress()
boolean
getKeepAlive()
InetAddress
getLocalAddress()
int
getLocalPort()
SocketAddress
getLocalSocketAddress()
boolean
getOOBInline()
int
getPort()
int
getReceiveBufferSize()
SocketAddress
getRemoteSocketAddress()
boolean
getReuseAddress()
int
getSendBufferSize()
int
getSoLinger()
int
getSoTimeout()
boolean
getTcpNoDelay()
int
getTrafficClass()
boolean
isClosed()
boolean
isConnected()
boolean
isInputShutdown()
boolean
isOutputShutdown()
String
toString()
-
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()
-