com.mindtree.techworks.insight.download
Class FTPRemoteClient

java.lang.Object
  extended by com.mindtree.techworks.insight.download.RemoteClient
      extended by com.mindtree.techworks.insight.download.FTPRemoteClient

public class FTPRemoteClient
extends RemoteClient

TODO

Version:
$Revision: 27 $ $Date: 2007-12-16 04:58:03 -0700 (Sun, 16 Dec 2007) $
Author:
Bindul Bhowmik
See Also:
RemoteClientFactory, RemoteClient

Field Summary
static java.net.PasswordAuthentication anonPassAuth
          Password Authentication to use for anonymous access
 
Fields inherited from class com.mindtree.techworks.insight.download.RemoteClient
baseDownloadDirectory, insight, isBusy, statusBar
 
Constructor Summary
FTPRemoteClient()
           
 
Method Summary
protected  void closeConnection()
          This method is to be called at the end of a transaction to complete any clean up operations on the connections, etc.
protected  java.lang.String[] downloadFile(java.lang.String fileName)
          Downloads a single file to the default download directory, and returns the complete pathof the file.
protected  void setFileset(Fileset fileset)
          Sets the fileset.
 
Methods inherited from class com.mindtree.techworks.insight.download.RemoteClient
downloadFile, downloadFiles, getDestinationFile, setBaseDownloadDirectory, setInsight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

anonPassAuth

public static final java.net.PasswordAuthentication anonPassAuth
Password Authentication to use for anonymous access

Constructor Detail

FTPRemoteClient

public FTPRemoteClient()
Method Detail

setFileset

protected void setFileset(Fileset fileset)
                   throws RemoteClientException
Description copied from class: RemoteClient
Sets the fileset. The actual implementation is client dependent, clients may extract information from the fileset. Most clients would check if the client instance created is compatible for the type of file being downloaded.

Specified by:
setFileset in class RemoteClient
Parameters:
fileset - The fileset being set
Throws:
RemoteClientException - If the information is not correct or the client is incompatible for the fileset.
See Also:
RemoteClient.setFileset(com.mindtree.techworks.insight.download.Fileset)

downloadFile

protected java.lang.String[] downloadFile(java.lang.String fileName)
                                   throws RemoteClientException
Description copied from class: RemoteClient
Downloads a single file to the default download directory, and returns the complete pathof the file.

Specified by:
downloadFile in class RemoteClient
Parameters:
fileName - The file path and name on the remote system to download. The actual format is client dependent.
Returns:
The array of complete paths to the downloaded files.
Throws:
RemoteClientException - If the download fails.
See Also:
RemoteClient.downloadFile(java.lang.String)

closeConnection

protected void closeConnection()
                        throws RemoteClientException
Description copied from class: RemoteClient
This method is to be called at the end of a transaction to complete any clean up operations on the connections, etc.

Specified by:
closeConnection in class RemoteClient
Throws:
RemoteClientException - If there is any exception during the cleanup.
See Also:
RemoteClient.closeConnection()


Copyright © 2003-2008 MindTree Consulting Ltd.. All Rights Reserved.