Class IPEndpoint

java.lang.Object
com.enterprisedt.net.ftp.IPEndpoint

public class IPEndpoint extends Object
Holds details of an IP endpoint, i.e. IP address and port number. Immutuable class.
Version:
$Revision$
Author:
Bruce Blackshaw
  • Constructor Details

    • IPEndpoint

      public IPEndpoint(String ipAddress, int port)
      Constructor
      Parameters:
      ipAddress - ip address
      port - port number
  • Method Details

    • getIPAddress

      public String getIPAddress()
      Get the ip address
      Returns:
      ip address
    • getPort

      public int getPort()
      Get the port number
      Returns:
      port number
    • toString

      public String toString()
      Overrides:
      toString in class Object