|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.myjavaworld.ftp.FTPHost
public class FTPHost
A class that encapsulates the information of an FTP server. Objects of this
class are used by FTPClient for connecting/login to the FTP
server.
| Constructor Summary | |
|---|---|
FTPHost()
Constructs an FTPHost object. |
|
FTPHost(String hostName,
int port,
String userName,
String password,
String account)
Constructs an FTPHost object. |
|
FTPHost(String hostName,
String userName,
String password)
Constructs an FTPHost object. |
|
FTPHost(String hostName,
String userName,
String password,
String account)
Constructs an FTPHost object. |
|
| Method Summary | |
|---|---|
String |
getAccount()
Returns the account name. |
String |
getHostName()
Returns the host name |
String |
getPassword()
Returns the password |
int |
getPort()
Returns the port number. |
String |
getUserName()
returns the user name. |
void |
setAccount(String account)
Sets the account to the given account. |
void |
setHostName(String hostName)
Sets the host name to the given hostName. |
void |
setPassword(String password)
Sets the password to the given password. |
void |
setPort(int port)
Sets the port number to the given port. |
void |
setUserName(String userName)
Sets the user name to the given userName. |
String |
toString()
Returns a string representation of this FTPHost. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FTPHost()
FTPHost object.
public FTPHost(String hostName,
String userName,
String password)
FTPHost object.
hostName - host name or IP addressuserName - user name for loginpassword - Password for login
public FTPHost(String hostName,
String userName,
String password,
String account)
FTPHost object.
hostName - host name or IP addressuserName - user name for loginpassword - Password for loginaccount - Account name for login
public FTPHost(String hostName,
int port,
String userName,
String password,
String account)
FTPHost object.
hostName - host name or IP address port Port number to connect toport - Port numberuserName - user name for loginpassword - Password for loginaccount - Account name for login| Method Detail |
|---|
public void setHostName(String hostName)
hostName.
hostName - Host name or IP addresspublic String getHostName()
public void setPort(int port)
port - Port number of this FTPHost.public int getPort()
public void setUserName(String userName)
userName.
userName - user name for login.public String getUserName()
public void setPassword(String password)
password.
password - Password for login.public String getPassword()
public void setAccount(String account)
account.
account - Account name for loginpublic String getAccount()
public String toString()
FTPHost.
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||