public class ScpFromMessageBySftp extends ScpFromMessage
Constructor and Description |
---|
ScpFromMessageBySftp(boolean verbose,
com.jcraft.jsch.Session session,
java.lang.String aRemoteFile,
java.io.File aLocalFile,
boolean recursive)
Constructor for ScpFromMessageBySftp.
|
ScpFromMessageBySftp(boolean verbose,
com.jcraft.jsch.Session session,
java.lang.String aRemoteFile,
java.io.File aLocalFile,
boolean recursive,
boolean preserveLastModified)
Constructor for ScpFromMessageBySftp.
|
ScpFromMessageBySftp(com.jcraft.jsch.Session session,
java.lang.String aRemoteFile,
java.io.File aLocalFile,
boolean recursive)
Constructor for ScpFromMessageBySftp.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Carry out the transfer.
|
getPreserveLastModified
getCompressed, getProgressMonitor, getVerbose, log, logStats, openExecChannel, openSftpChannel, sendAck, setLogListener, trackProgress, waitForAck
public ScpFromMessageBySftp(boolean verbose, com.jcraft.jsch.Session session, java.lang.String aRemoteFile, java.io.File aLocalFile, boolean recursive)
verbose
- if true log extra informationsession
- the Scp session to useaRemoteFile
- the remote file nameaLocalFile
- the local filerecursive
- if true use recursionpublic ScpFromMessageBySftp(com.jcraft.jsch.Session session, java.lang.String aRemoteFile, java.io.File aLocalFile, boolean recursive)
session
- the Scp session to useaRemoteFile
- the remote file nameaLocalFile
- the local filerecursive
- if true use recursionpublic ScpFromMessageBySftp(boolean verbose, com.jcraft.jsch.Session session, java.lang.String aRemoteFile, java.io.File aLocalFile, boolean recursive, boolean preserveLastModified)
verbose
- if true log extra informationsession
- the Scp session to useaRemoteFile
- the remote file nameaLocalFile
- the local filerecursive
- if true use recursionpreserveLastModified
- whether to preserve file
modification timespublic void execute() throws java.io.IOException, com.jcraft.jsch.JSchException
execute
in class ScpFromMessage
java.io.IOException
- on i/o errorscom.jcraft.jsch.JSchException
- on errors detected by scp