|
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
public class 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. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FtpsImplicitTransfer() throws FileTransferException
FileTransferException
- if an I/O or FTP related error occurspublic FtpsImplicitTransfer(java.lang.String host, java.lang.String user, java.lang.String pwd) throws FileTransferException
host
- the hostname of FTP serveruser
- the username of FTP userpwd
- the password of FTP user
FileTransferException
- if an I/O or FTP related error occurspublic FtpsImplicitTransfer(java.lang.String host, java.lang.String user, java.lang.String pwd, int port) throws FileTransferException
host
- the hostname of FTP serveruser
- the username of FTP userpwd
- the password of FTP userport
- the port of FTP server
FileTransferException
- if an I/O or FTP related error occurspublic FtpsImplicitTransfer(java.lang.String host, java.lang.String user, java.lang.String pwd, java.lang.Integer port) throws FileTransferException
host
- the hostnameuser
- the usernamepwd
- the passwordport
- the port
FileTransferException
- if an I/O or FTP related error occurspublic FtpsImplicitTransfer(java.lang.String host, java.lang.String user, java.lang.String pwd, java.io.File localDirectory) throws 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
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 |