gnu.inet.ftp
Class PassiveParameters

java.lang.Object
  |
  +--gnu.inet.ftp.PassiveParameters

public class PassiveParameters
extends java.lang.Object

This class encapsulates the parameters of a passive data connection.


Constructor Summary
PassiveParameters(java.lang.String address, int port)
          create a new instance of PassiveParameters
 
Method Summary
 boolean equals(PassiveParameters other)
          compare another PassiveParameters instance to this one.
 java.net.InetAddress getInetAddress()
          get the IP address
 int getPort()
          get the port value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassiveParameters

public PassiveParameters(java.lang.String address,
                         int port)
                  throws java.net.UnknownHostException
create a new instance of PassiveParameters
Parameters:
address - IP address
port - TCP/IP port value
Method Detail

getPort

public int getPort()
get the port value
Returns:
port value as int

getInetAddress

public java.net.InetAddress getInetAddress()
get the IP address
Returns:
IP address

equals

public boolean equals(PassiveParameters other)
compare another PassiveParameters instance to this one.
Parameters:
other - the other instance to compare this one with
Returns:
true if the other instance equals this one, false if they are not equal