Secure FTP Factory

com.jscape.filetransfer
Class FtpsImplicitTransfer

java.lang.Object
  extended bycom.jscape.filetransfer.FtpsTransfer
      extended bycom.jscape.filetransfer.FtpsImplicitTransfer
All Implemented Interfaces:
FileTransfer

public class FtpsImplicitTransfer
extends FtpsTransfer

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 com.jscape.filetransfer.FtpsTransfer
addFileTransferListener, addFtpsCertificateVerifier, changePassword, clearCommandChannel, clearProxySettings, connect, connect, deleteDir, deleteDir, deleteFile, disconnect, download, download, download, downloadDir, downloadDir, getBlockTransferSize, getDebug, getDebugStream, getDir, getDirListing, getDirListing, getDirListingAsString, getDirListingAsString, getErrorOnSizeCommand, getFilesize, getFileTimestamp, getHostname, getImplementation, getInputStream, getLocalChecksum, getLocalDir, getLocalDirListing, getMode, getNameListing, getNameListing, getOutputStream, getPassive, getPassword, getPort, getRemoteFileChecksum, getShutdownCCC, getTimeout, getUseEPSV, getUsername, getWireEncoding, interrupt, interrupted, isConnected, login, makeDir, makeDirRecursive, makeLocalDir, mdelete, mdownload, mdownload, mupload, mupload, removeFileTransferListener, renameFile, reset, resumeDownload, resumeDownload, resumeUpload, resumeUpload, setAscii, setAuto, setBinary, setBlockTransferSize, setClientCertificates, setClientCertificates, setClientCertificates, setCompression, setConnectBeforeCommand, setDebug, setDebugStream, setDir, setDirUp, setErrorOnSizeCommand, setFileTimestamp, setHostname, setLocalDir, setNATAddress, setPassive, setPassword, setPort, setProxyAuthentication, setProxyHost, setProxyType, setServerCertificates, setServerCertificates, setServerCertificates, setShutdownCCC, setTimeout, setUseEPSV, setUseExtendedDirectoryListing, setUsername, setWireEncoding, upload, upload, upload, upload, upload, upload, upload, upload, upload, upload, upload, uploadDir, uploadDir, uploadDir, uploadUnique, uploadUnique, uploadUnique
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FtpsImplicitTransfer

public FtpsImplicitTransfer()
                     throws com.jscape.filetransfer.FileTransferException
Creates FtpsImplicitTransfer instance.

Throws:
com.jscape.filetransfer.FileTransferException - if an I/O or FTP related error occurs

FtpsImplicitTransfer

public FtpsImplicitTransfer(java.lang.String host,
                            java.lang.String user,
                            java.lang.String pwd)
                     throws com.jscape.filetransfer.FileTransferException
Creates FtpsImplicitTransfer instance.

Parameters:
host - the hostname of FTP server
user - the username of FTP user
pwd - the password of FTP user
Throws:
com.jscape.filetransfer.FileTransferException - if an I/O or FTP related error occurs

FtpsImplicitTransfer

public FtpsImplicitTransfer(java.lang.String host,
                            java.lang.String user,
                            java.lang.String pwd,
                            int port)
                     throws com.jscape.filetransfer.FileTransferException
Creates FtpsImplicitTransfer instance.

Parameters:
host - the hostname of FTP server
user - the username of FTP user
pwd - the password of FTP user
port - the port of FTP server
Throws:
com.jscape.filetransfer.FileTransferException - if an I/O or FTP related error occurs

FtpsImplicitTransfer

public FtpsImplicitTransfer(java.lang.String host,
                            java.lang.String user,
                            java.lang.String pwd,
                            java.lang.Integer port)
                     throws com.jscape.filetransfer.FileTransferException
Creates FtpsImplicitTransfer instance.

Parameters:
host - the hostname
user - the username
pwd - the password
port - the port
Throws:
com.jscape.filetransfer.FileTransferException - if an I/O or FTP related error occurs

FtpsImplicitTransfer

public FtpsImplicitTransfer(java.lang.String host,
                            java.lang.String user,
                            java.lang.String pwd,
                            java.io.File localDirectory)
                     throws com.jscape.filetransfer.FileTransferException
Creates FtpsImplicitTransfer instance.

Parameters:
host - the hostname of FTP server
user - the username of FTP user
pwd - the password of FTP user
localDirectory - the local directory to be used for transferring files
Throws:
com.jscape.filetransfer.FileTransferException - if an I/O or FTP related error occurs

Secure FTP Factory

Copyright JSCAPE 1999-2007 All Rights Reserved