java.lang.Object
org.springframework.integration.ip.tcp.connection.SocketInfo

public class SocketInfo
extends java.lang.Object
Simple wrapper around Socket providing access to getters (except input/output streams).
Since:
4.2.5
  • Constructor Details

    • SocketInfo

      public SocketInfo​(java.net.Socket socket)
  • Method Details

    • getInetAddress

      public java.net.InetAddress getInetAddress()
    • getLocalAddress

      public java.net.InetAddress getLocalAddress()
    • getPort

      public int getPort()
    • getLocalPort

      public int getLocalPort()
    • getRemoteSocketAddress

      public java.net.SocketAddress getRemoteSocketAddress()
    • getLocalSocketAddress

      public java.net.SocketAddress getLocalSocketAddress()
    • getChannel

      public java.nio.channels.SocketChannel getChannel()
    • getTcpNoDelay

      public boolean getTcpNoDelay() throws java.net.SocketException
      Throws:
      java.net.SocketException
    • getSoLinger

      public int getSoLinger() throws java.net.SocketException
      Throws:
      java.net.SocketException
    • getOOBInline

      public boolean getOOBInline() throws java.net.SocketException
      Throws:
      java.net.SocketException
    • getSoTimeout

      public int getSoTimeout() throws java.net.SocketException
      Throws:
      java.net.SocketException
    • getSendBufferSize

      public int getSendBufferSize() throws java.net.SocketException
      Throws:
      java.net.SocketException
    • getReceiveBufferSize

      public int getReceiveBufferSize() throws java.net.SocketException
      Throws:
      java.net.SocketException
    • getKeepAlive

      public boolean getKeepAlive() throws java.net.SocketException
      Throws:
      java.net.SocketException
    • getTrafficClass

      public int getTrafficClass() throws java.net.SocketException
      Throws:
      java.net.SocketException
    • getReuseAddress

      public boolean getReuseAddress() throws java.net.SocketException
      Throws:
      java.net.SocketException
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • isConnected

      public boolean isConnected()
    • isClosed

      public boolean isClosed()
    • isInputShutdown

      public boolean isInputShutdown()
    • isOutputShutdown

      public boolean isOutputShutdown()