|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindtree.techworks.insight.download.RemoteClient
com.mindtree.techworks.insight.download.SFTPRemoteClient
public class SFTPRemoteClient
TODO
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 | |
---|---|
SFTPRemoteClient()
|
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 path of 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 |
---|
public static final java.net.PasswordAuthentication anonPassAuth
Constructor Detail |
---|
public SFTPRemoteClient()
Method Detail |
---|
protected void setFileset(Fileset fileset) throws RemoteClientException
RemoteClient
setFileset
in class RemoteClient
fileset
- The fileset being set
RemoteClientException
- If the information is not correct or the
client is incompatible for the fileset.RemoteClient.setFileset(com.mindtree.techworks.insight.download.Fileset)
protected java.lang.String[] downloadFile(java.lang.String fileName) throws RemoteClientException
RemoteClient
complete path
of the file.
downloadFile
in class RemoteClient
fileName
- The file path and name on the remote system to download.
The actual format is client dependent.
RemoteClientException
- If the download fails.RemoteClient.downloadFile(java.lang.String)
protected void closeConnection() throws RemoteClientException
RemoteClient
closeConnection
in class RemoteClient
RemoteClientException
- If there is any exception during the
cleanup.RemoteClient.closeConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |