gnu.inet.ftp
Class PassiveConnection
java.lang.Object
|
+--gnu.inet.ftp.PassiveConnection
- public class PassiveConnection
- extends java.lang.Object
This class encapsulates the parameters of a passive data connection.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PassiveConnection
public PassiveConnection(PassiveParameters parameters)
throws java.net.UnknownHostException,
java.io.IOException
- create a new instance of PassiveParameters
- Parameters:
parameters - passive connection parameters
getPassiveParameters
public PassiveParameters getPassiveParameters()
- get the passive parameters
- Returns:
- passive parameter data
getSocket
public java.net.Socket getSocket()
- get the socket for this passive connection
- Returns:
- the socket for this passive connection
equals
public boolean equals(PassiveConnection other)
- compare another PassiveConnection 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