org.apache.tools.ant.taskdefs.optional.ssh
Class ScpToMessage
public class ScpToMessage
Utility class to carry out an upload scp transfer.
ScpToMessage(Session session) - Constructor for ScpToMessage
|
ScpToMessage(Session session, File aLocalFile, String aRemotePath) - Constructor for ScpToMessage.
|
ScpToMessage(Session session, List aDirectoryList, String aRemotePath) - Constructor for ScpToMessage.
|
ScpToMessage(boolean verbose, Session session) - Constructor for ScpToMessage
|
ScpToMessage(boolean verbose, Session session, File aLocalFile, String aRemotePath) - Constructor for a local file to remote.
|
ScpToMessage(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 |
ScpToMessage
public ScpToMessage(Session session)
Constructor for ScpToMessage
session
- the ssh session to use
ScpToMessage
public ScpToMessage(Session session,
File aLocalFile,
String aRemotePath)
Constructor for ScpToMessage.
session
- the scp session to useaLocalFile
- the local fileaRemotePath
- the remote path
ScpToMessage
public ScpToMessage(Session session,
List aDirectoryList,
String aRemotePath)
Constructor for ScpToMessage.
session
- the scp session to useaDirectoryList
- a list of directoriesaRemotePath
- the remote path
ScpToMessage
public ScpToMessage(boolean verbose,
Session session)
Constructor for ScpToMessage
verbose
- if true do verbose loggingsession
- the ssh session to use
ScpToMessage
public ScpToMessage(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
ScpToMessage
public ScpToMessage(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 AbstractSshMessage
getLocalFile
public File getLocalFile()
Get the local file
getRemotePath
public String getRemotePath()
Get the remote path