Class SftpCommandMain.TransferCommandExecutor

    • Field Summary

      • Fields inherited from interface org.apache.sshd.common.NamedResource

        BY_NAME_COMPARATOR, NAME_EXTRACTOR
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void createDirectories​(org.apache.sshd.sftp.client.SftpClient sftp, java.lang.String remotePath, java.io.PrintStream stdout, boolean verbose)  
      protected void executeCommand​(java.lang.String args, boolean upload, java.io.PrintStream stdout)  
      protected void transferFile​(org.apache.sshd.sftp.client.SftpClient sftp, java.nio.file.Path localPath, java.lang.String remotePath, boolean upload, java.io.PrintStream stdout, boolean verbose)  
      protected void transferLocalDir​(org.apache.sshd.sftp.client.SftpClient sftp, java.nio.file.Path localPath, java.lang.String remotePath, java.io.PrintStream stdout, boolean verbose)  
      protected void transferRemoteDir​(org.apache.sshd.sftp.client.SftpClient sftp, java.nio.file.Path localPath, java.lang.String remotePath, org.apache.sshd.sftp.client.SftpClient.Attributes attrs, java.io.PrintStream stdout, boolean verbose)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.sshd.common.NamedResource

        getName
    • Constructor Detail

      • TransferCommandExecutor

        protected TransferCommandExecutor()
    • Method Detail

      • createDirectories

        protected void createDirectories​(org.apache.sshd.sftp.client.SftpClient sftp,
                                         java.lang.String remotePath,
                                         java.io.PrintStream stdout,
                                         boolean verbose)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • transferFile

        protected void transferFile​(org.apache.sshd.sftp.client.SftpClient sftp,
                                    java.nio.file.Path localPath,
                                    java.lang.String remotePath,
                                    boolean upload,
                                    java.io.PrintStream stdout,
                                    boolean verbose)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • transferRemoteDir

        protected void transferRemoteDir​(org.apache.sshd.sftp.client.SftpClient sftp,
                                         java.nio.file.Path localPath,
                                         java.lang.String remotePath,
                                         org.apache.sshd.sftp.client.SftpClient.Attributes attrs,
                                         java.io.PrintStream stdout,
                                         boolean verbose)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • transferLocalDir

        protected void transferLocalDir​(org.apache.sshd.sftp.client.SftpClient sftp,
                                        java.nio.file.Path localPath,
                                        java.lang.String remotePath,
                                        java.io.PrintStream stdout,
                                        boolean verbose)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • executeCommand

        protected void executeCommand​(java.lang.String args,
                                      boolean upload,
                                      java.io.PrintStream stdout)
                               throws java.io.IOException
        Throws:
        java.io.IOException