Package org.apache.sshd.cli.client
Class SftpCommandMain.TransferCommandExecutor
- java.lang.Object
-
- org.apache.sshd.cli.client.SftpCommandMain.TransferCommandExecutor
-
- All Implemented Interfaces:
SftpCommandExecutor,NamedResource
- Direct Known Subclasses:
SftpCommandMain.GetCommandExecutor,SftpCommandMain.PutCommandExecutor
- Enclosing class:
- SftpCommandMain
private abstract class SftpCommandMain.TransferCommandExecutor extends java.lang.Object implements SftpCommandExecutor
-
-
Field Summary
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTransferCommandExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateDirectories(SftpClient sftp, java.lang.String remotePath, java.io.PrintStream stdout, boolean verbose)protected voidexecuteCommand(java.lang.String args, boolean upload, java.io.PrintStream stdout)protected voidtransferFile(SftpClient sftp, java.nio.file.Path localPath, java.lang.String remotePath, boolean upload, java.io.PrintStream stdout, boolean verbose)protected voidtransferLocalDir(SftpClient sftp, java.nio.file.Path localPath, java.lang.String remotePath, java.io.PrintStream stdout, boolean verbose)protected voidtransferRemoteDir(SftpClient sftp, java.nio.file.Path localPath, java.lang.String remotePath, 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
-
Methods inherited from interface org.apache.sshd.cli.client.SftpCommandExecutor
executeCommand
-
-
-
-
Method Detail
-
createDirectories
protected void createDirectories(SftpClient sftp, java.lang.String remotePath, java.io.PrintStream stdout, boolean verbose) throws java.io.IOException
- Throws:
java.io.IOException
-
transferFile
protected void transferFile(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(SftpClient sftp, java.nio.file.Path localPath, java.lang.String remotePath, SftpClient.Attributes attrs, java.io.PrintStream stdout, boolean verbose) throws java.io.IOException
- Throws:
java.io.IOException
-
transferLocalDir
protected void transferLocalDir(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
-
-