org.apache.tools.ant.taskdefs.optional.ssh
Class ScpToMessageBySftp
public class ScpToMessageBySftp
Utility class to carry out an upload by sftp.
ScpToMessageBySftp(Session session, File aLocalFile, String aRemotePath) - Constructor for ScpToMessage.
|
ScpToMessageBySftp(Session session, List aDirectoryList, String aRemotePath) - Constructor for ScpToMessage.
|
ScpToMessageBySftp(boolean verbose, Session session, File aLocalFile, String aRemotePath) - Constructor for a local file to remote.
|
ScpToMessageBySftp(boolean verbose, Session session, List aDirectoryList, String aRemotePath) - Constructor for a local directories to remote.
|
execute , getProgressMonitor , getVerbose , log , logStats , openExecChannel , openSftpChannel , sendAck , setLogListener , trackProgress , waitForAck |
ScpToMessageBySftp
public ScpToMessageBySftp(Session session,
File aLocalFile,
String aRemotePath)
Constructor for ScpToMessage.
session
- the scp session to useaLocalFile
- the local fileaRemotePath
- the remote path
ScpToMessageBySftp
public ScpToMessageBySftp(Session session,
List aDirectoryList,
String aRemotePath)
Constructor for ScpToMessage.
session
- the scp session to useaDirectoryList
- a list of directoriesaRemotePath
- the remote path
ScpToMessageBySftp
public ScpToMessageBySftp(boolean verbose,
Session session,
File aLocalFile,
String aRemotePath)
Constructor for a local file to remote.
verbose
- if true do verbose loggingsession
- the scp session to useaLocalFile
- the local fileaRemotePath
- the remote path
ScpToMessageBySftp
public ScpToMessageBySftp(boolean verbose,
Session session,
List aDirectoryList,
String aRemotePath)
Constructor for a local directories to remote.
verbose
- if true do verbose loggingsession
- the scp session to useaDirectoryList
- a list of directoriesaRemotePath
- the remote path
execute
public void execute()
throws IOException,
JSchException
Carry out the transfer.
- execute in interface ScpToMessage