|
Secure FTP Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jscape.filetransfer.FtpsTransfer
com.jscape.filetransfer.FtpsImplicitTransfer
Implements the basic functionality of a FTPS client using implicit SSL.
Example Usage:
// create new FtpsTransfer instance
FileTransfer ftp = new FtpsImplicitTransfer("ftp.myserver.com","anonymous","user@myserver.com");
ftp.setPort(990);
try {
// connect to FTP server
ftp.connect();
<p/>
// print out directory listing
System.out.println(ftp.getDirListingAsString());
<p/>
// disconnect from FTP server
ftp.disconnect();
} catch(Exception e) {
System.out.println(e);
}
| Field Summary |
| Fields inherited from interface com.jscape.filetransfer.FileTransfer |
ASCII, AUTO, BINARY, CURRENT_DIR, UP_DIR |
| Constructor Summary | |
FtpsImplicitTransfer()
Creates FtpsImplicitTransfer instance. |
|
FtpsImplicitTransfer(java.lang.String host,
java.lang.String user,
java.lang.String pwd)
Creates FtpsImplicitTransfer instance. |
|
FtpsImplicitTransfer(java.lang.String host,
java.lang.String user,
java.lang.String pwd,
java.io.File localDirectory)
Creates FtpsImplicitTransfer instance. |
|
FtpsImplicitTransfer(java.lang.String host,
java.lang.String user,
java.lang.String pwd,
int port)
Creates FtpsImplicitTransfer instance. |
|
FtpsImplicitTransfer(java.lang.String host,
java.lang.String user,
java.lang.String pwd,
java.lang.Integer port)
Creates FtpsImplicitTransfer instance. |
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FtpsImplicitTransfer()
throws com.jscape.filetransfer.FileTransferException
com.jscape.filetransfer.FileTransferException - if an I/O or FTP related error occurs
public FtpsImplicitTransfer(java.lang.String host,
java.lang.String user,
java.lang.String pwd)
throws com.jscape.filetransfer.FileTransferException
host - the hostname of FTP serveruser - the username of FTP userpwd - the password of FTP user
com.jscape.filetransfer.FileTransferException - if an I/O or FTP related error occurs
public FtpsImplicitTransfer(java.lang.String host,
java.lang.String user,
java.lang.String pwd,
int port)
throws com.jscape.filetransfer.FileTransferException
host - the hostname of FTP serveruser - the username of FTP userpwd - the password of FTP userport - the port of FTP server
com.jscape.filetransfer.FileTransferException - if an I/O or FTP related error occurs
public FtpsImplicitTransfer(java.lang.String host,
java.lang.String user,
java.lang.String pwd,
java.lang.Integer port)
throws com.jscape.filetransfer.FileTransferException
host - the hostnameuser - the usernamepwd - the passwordport - the port
com.jscape.filetransfer.FileTransferException - if an I/O or FTP related error occurs
public FtpsImplicitTransfer(java.lang.String host,
java.lang.String user,
java.lang.String pwd,
java.io.File localDirectory)
throws com.jscape.filetransfer.FileTransferException
host - the hostname of FTP serveruser - the username of FTP userpwd - the password of FTP userlocalDirectory - the local directory to be used for transferring files
com.jscape.filetransfer.FileTransferException - if an I/O or FTP related error occurs
|
Secure FTP Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||