public class ScpToMessageBySftp extends ScpToMessage
Constructor | Description |
---|---|
ScpToMessageBySftp(boolean verbose,
com.jcraft.jsch.Session session,
java.io.File aLocalFile,
java.lang.String aRemotePath) |
Constructor for a local file to remote.
|
ScpToMessageBySftp(boolean verbose,
com.jcraft.jsch.Session session,
java.io.File aLocalFile,
java.lang.String aRemotePath,
boolean preserveLastModified) |
Constructor for a local file to remote.
|
ScpToMessageBySftp(boolean verbose,
com.jcraft.jsch.Session session,
java.util.List<Directory> aDirectoryList,
java.lang.String aRemotePath) |
Constructor for a local directories to remote.
|
ScpToMessageBySftp(boolean verbose,
com.jcraft.jsch.Session session,
java.util.List<Directory> aDirectoryList,
java.lang.String aRemotePath,
boolean preserveLastModified) |
Constructor for a local directories to remote.
|
ScpToMessageBySftp(com.jcraft.jsch.Session session,
java.io.File aLocalFile,
java.lang.String aRemotePath) |
Constructor for ScpToMessage.
|
ScpToMessageBySftp(com.jcraft.jsch.Session session,
java.util.List<Directory> aDirectoryList,
java.lang.String aRemotePath) |
Constructor for ScpToMessage.
|
Modifier and Type | Method | Description |
---|---|---|
void |
execute() |
Carry out the transfer.
|
java.io.File |
getLocalFile() |
Get the local file.
|
boolean |
getPreserveLastModified() |
Returns true if the last modified time needs to be preserved on the
file(s) that get transferred.
|
java.lang.String |
getRemotePath() |
Get the remote path.
|
getCompressed, getProgressMonitor, getVerbose, log, logStats, openExecChannel, openSftpChannel, sendAck, setLogListener, trackProgress, waitForAck
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDirMode, getFileMode, setDirMode, setFileMode
public ScpToMessageBySftp(boolean verbose, com.jcraft.jsch.Session session, java.io.File aLocalFile, java.lang.String aRemotePath)
verbose
- if true do verbose loggingsession
- the scp session to useaLocalFile
- the local fileaRemotePath
- the remote pathpublic ScpToMessageBySftp(boolean verbose, com.jcraft.jsch.Session session, java.io.File aLocalFile, java.lang.String aRemotePath, boolean preserveLastModified)
verbose
- if true do verbose loggingsession
- the scp session to useaLocalFile
- the local fileaRemotePath
- the remote pathpreserveLastModified
- True if the last modified time needs to be preserved
on the transferred files. False otherwise.public ScpToMessageBySftp(boolean verbose, com.jcraft.jsch.Session session, java.util.List<Directory> aDirectoryList, java.lang.String aRemotePath)
verbose
- if true do verbose loggingsession
- the scp session to useaDirectoryList
- a list of directoriesaRemotePath
- the remote pathpublic ScpToMessageBySftp(boolean verbose, com.jcraft.jsch.Session session, java.util.List<Directory> aDirectoryList, java.lang.String aRemotePath, boolean preserveLastModified)
verbose
- if true do verbose loggingsession
- the scp session to useaDirectoryList
- a list of directoriesaRemotePath
- the remote pathpreserveLastModified
- True if the last modified time needs to be preserved
on the transferred files. False otherwise.public ScpToMessageBySftp(com.jcraft.jsch.Session session, java.io.File aLocalFile, java.lang.String aRemotePath)
session
- the scp session to useaLocalFile
- the local fileaRemotePath
- the remote pathpublic ScpToMessageBySftp(com.jcraft.jsch.Session session, java.util.List<Directory> aDirectoryList, java.lang.String aRemotePath)
session
- the scp session to useaDirectoryList
- a list of directoriesaRemotePath
- the remote pathpublic void execute() throws java.io.IOException, com.jcraft.jsch.JSchException
execute
in class ScpToMessage
java.io.IOException
- on i/o errorscom.jcraft.jsch.JSchException
- on errors detected by scppublic java.io.File getLocalFile()
getLocalFile
in class ScpToMessage
public java.lang.String getRemotePath()
getRemotePath
in class ScpToMessage
public boolean getPreserveLastModified()
getPreserveLastModified
in class ScpToMessage