Secure FTP Factory

com.jscape.filetransfer
Class FtpsImplicitTransfer

java.lang.Object
  extended by com.jscape.filetransfer.FtpsTransfer
      extended by com.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.
 
Method Summary
 
Methods inherited from class com.jscape.filetransfer.FtpsTransfer
abortDownloadThreads, abortUploadThreads, addFileTransferListener, addFtpsCertificateVerifier, changePassword, checksum, clearCommandChannel, clearProxySettings, connect, connect, deleteDir, deleteDir, deleteFile, disconnect, download, download, download, downloadDir, downloadDir, downloadDir, getAutoDetectIpv6, getBlockTransferSize, getDebug, getDebugStream, getDir, getDirListing, getDirListing, getDirListingAsString, getDirListingAsString, getErrorOnSizeCommand, getFilesize, getFileTimestamp, getHostname, getImplementation, getInputStream, getLocalChecksum, getLocalDir, getLocalDirListing, getMode, getNameListing, getNameListing, getOutputStream, getPassive, getPassword, getPort, getRecursiveDirectoryFileCount, getRecursiveDirectorySize, getRemoteFileChecksum, getRemoteFileList, getShutdownCCC, getTimeout, getUseEPRT, getUseEPSV, getUsername, getWireEncoding, interrupt, interrupted, isConnected, isFeatureSupported, issueCommand, login, makeDir, makeDirRecursive, makeLocalDir, mdelete, mdownload, mdownload, mupload, mupload, removeFileTransferListener, renameFile, reset, resumeDownload, resumeDownload, resumeUpload, resumeUpload, setAscii, setAuto, setAutoDetectIpv6, 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, setUseEPRT, setUseEPSV, setUseExtendedDirectoryListing, setUsername, setWireEncoding, upload, upload, upload, upload, upload, upload, upload, upload, upload, upload, upload, uploadDir, 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 FileTransferException
Creates FtpsImplicitTransfer instance.

Throws:
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 FileTransferException
Creates FtpsImplicitTransfer instance.

Parameters:
host - the hostname of FTP server
user - the username of FTP user
pwd - the password of FTP user
Throws:
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 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:
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 FileTransferException
Creates FtpsImplicitTransfer instance.

Parameters:
host - the hostname
user - the username
pwd - the password
port - the port
Throws:
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 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:
FileTransferException - if an I/O or FTP related error occurs

Secure FTP Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved