public class ScpToMessage extends AbstractSshMessage
| Constructor and Description | 
|---|
| ScpToMessage(boolean verbose,
            boolean compressed,
            com.jcraft.jsch.Session session)Constructor for ScpToMessage | 
| ScpToMessage(boolean verbose,
            boolean compressed,
            com.jcraft.jsch.Session session,
            java.io.File aLocalFile,
            java.lang.String aRemotePath,
            boolean preserveLastModified)Constructor for a local file to remote. | 
| ScpToMessage(boolean verbose,
            boolean compressed,
            com.jcraft.jsch.Session session,
            java.util.List aDirectoryList,
            java.lang.String aRemotePath,
            boolean preserveLastModified)Constructor for a local directories to remote. | 
| ScpToMessage(boolean verbose,
            com.jcraft.jsch.Session session)Constructor for ScpToMessage | 
| ScpToMessage(boolean verbose,
            com.jcraft.jsch.Session session,
            java.io.File aLocalFile,
            java.lang.String aRemotePath)Constructor for a local file to remote. | 
| ScpToMessage(boolean verbose,
            com.jcraft.jsch.Session session,
            java.io.File aLocalFile,
            java.lang.String aRemotePath,
            boolean preserveLastModified)Constructor for a local file to remote. | 
| ScpToMessage(boolean verbose,
            com.jcraft.jsch.Session session,
            java.util.List aDirectoryList,
            java.lang.String aRemotePath)Constructor for a local directories to remote. | 
| ScpToMessage(boolean verbose,
            com.jcraft.jsch.Session session,
            java.util.List aDirectoryList,
            java.lang.String aRemotePath,
            boolean preserveLastModified)Constructor for a local directories to remote. | 
| ScpToMessage(com.jcraft.jsch.Session session)Constructor for ScpToMessage | 
| ScpToMessage(com.jcraft.jsch.Session session,
            java.io.File aLocalFile,
            java.lang.String aRemotePath)Constructor for ScpToMessage. | 
| ScpToMessage(com.jcraft.jsch.Session session,
            java.util.List aDirectoryList,
            java.lang.String aRemotePath)Constructor for ScpToMessage. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | execute()Carry out the transfer. | 
| int | getDirMode()Get the dir mode. | 
| int | getFileMode()Get the file mode. | 
| java.io.File | getLocalFile()Get the local file | 
| boolean | getPreserveLastModified()Whether to preserve the last modified time. | 
| java.lang.String | getRemotePath()Get the remote path | 
| void | setDirMode(int dirMode)Set the dir mode, defaults to 0755. | 
| void | setFileMode(int fileMode)Set the file mode, defaults to 0644. | 
getCompressed, getProgressMonitor, getVerbose, log, logStats, openExecChannel, openSftpChannel, sendAck, setLogListener, trackProgress, waitForAckpublic ScpToMessage(com.jcraft.jsch.Session session)
session - the ssh session to usepublic ScpToMessage(boolean verbose,
                    com.jcraft.jsch.Session session)
verbose - if true do verbose loggingsession - the ssh session to usepublic ScpToMessage(boolean verbose,
                    boolean compressed,
                    com.jcraft.jsch.Session session)
verbose - if true do verbose loggingcompressed - if true use compressionsession - the ssh session to usepublic ScpToMessage(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 - whether to preserve the last modified timestampspublic ScpToMessage(boolean verbose,
                    boolean compressed,
                    com.jcraft.jsch.Session session,
                    java.io.File aLocalFile,
                    java.lang.String aRemotePath,
                    boolean preserveLastModified)
verbose - if true do verbose loggingcompressed - if true use compressionsession - the scp session to useaLocalFile - the local fileaRemotePath - the remote pathpreserveLastModified - whether to preserve the last modified timestampspublic ScpToMessage(boolean verbose,
                    com.jcraft.jsch.Session session,
                    java.util.List 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 - whether to preserve the last modified timestampspublic ScpToMessage(boolean verbose,
                    boolean compressed,
                    com.jcraft.jsch.Session session,
                    java.util.List aDirectoryList,
                    java.lang.String aRemotePath,
                    boolean preserveLastModified)
verbose - if true do verbose loggingcompressed - whether to use compressionsession - the scp session to useaDirectoryList - a list of directoriesaRemotePath - the remote pathpreserveLastModified - whether to preserve the last modified timestampspublic ScpToMessage(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 ScpToMessage(boolean verbose,
                    com.jcraft.jsch.Session session,
                    java.util.List aDirectoryList,
                    java.lang.String aRemotePath)
verbose - if true do verbose loggingsession - the scp session to useaDirectoryList - a list of directoriesaRemotePath - the remote pathpublic ScpToMessage(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 ScpToMessage(com.jcraft.jsch.Session session,
                    java.util.List 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 AbstractSshMessagejava.io.IOException - on i/o errorscom.jcraft.jsch.JSchException - on errors detected by scppublic java.io.File getLocalFile()
public java.lang.String getRemotePath()
public void setFileMode(int fileMode)
fileMode - intpublic int getFileMode()
public void setDirMode(int dirMode)
dirMode - intpublic int getDirMode()
public boolean getPreserveLastModified()