Class SftpCommandMain
java.lang.Object
org.apache.sshd.cli.CliSupport
org.apache.sshd.cli.client.SshClientCliSupport
org.apache.sshd.cli.client.SftpCommandMain
- All Implemented Interfaces:
Closeable, AutoCloseable, Channel, org.apache.sshd.sftp.client.SftpClientHolder
public class SftpCommandMain
extends SshClientCliSupport
implements org.apache.sshd.sftp.client.SftpClientHolder, Channel
TODO Add javadoc
- Author:
- Apache MINA SSHD Project
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCommand line option used to indicate a non-default port numberFields inherited from class SshClientCliSupport
SSH_CLIENT_PORT_OPTIONFields inherited from class CliSupport
DEFAULT_IO_SERVICE_FACTORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <A extends Appendable>
AappendFileAttributes(A stdout, org.apache.sshd.sftp.client.SftpClient sftp, String path, org.apache.sshd.sftp.client.SftpClient.Attributes attrs) static <A extends Appendable>
AappendInfoValue(A sb, CharSequence name, Object value) ///////////////////////////////////////////////////////////////////////voidclose()voiddoInteractive(BufferedReader stdin, PrintStream stdout, PrintStream stderr) final org.apache.sshd.sftp.client.SftpClientbooleanisOpen()booleanstatic voidprotected StringresolveLocalPath(String pathArg) protected StringresolveRemotePath(String pathArg) static org.apache.sshd.sftp.client.SftpClientFactoryresolveSftpClientFactory(org.apache.sshd.client.session.ClientSession session) static org.apache.sshd.sftp.client.SftpVersionSelector.NamedVersionSelectorresolveVersionSelector(org.apache.sshd.client.session.ClientSession session) voidvoidvoidsetShowProgress(boolean showProgress) Methods inherited from class SshClientCliSupport
isArgumentedOption, resolveClientEnvironment, resolveClientEnvironment, resolveClientPtyModes, resolveClientPtyOptions, resolveClientPtyOptions, resolveHost, resolveIdentityFile, resolveLoggingTargetStream, resolveLoggingTargetStream, setupClient, setupClientSession, setupDefaultClient, setupLogging, setupServerKeyVerifier, setupSessionExtensions, setupSessionIdentities, setupSessionUserInteractionMethods inherited from class CliSupport
createLoggingIoServiceEventListener, createLoggingSessionListener, printFieldsValues, resolveBuiltinIoServiceFactory, resolveIoServiceFactory, setupCiphers, setupCiphers, setupCompressions, setupCompressions, setupIoServiceFactory, setupMacs, setupMacs, setupUserAuthFactories, splitCommandLineArguments
-
Field Details
-
SFTP_PORT_OPTION
Command line option used to indicate a non-default port number- See Also:
-
-
Constructor Details
-
SftpCommandMain
public SftpCommandMain(org.apache.sshd.sftp.client.SftpClient client)
-
-
Method Details
-
getClient
public final org.apache.sshd.sftp.client.SftpClient getClient()- Specified by:
getClientin interfaceorg.apache.sshd.sftp.client.SftpClientHolder
-
doInteractive
public void doInteractive(BufferedReader stdin, PrintStream stdout, PrintStream stderr) throws Exception - Throws:
Exception
-
resolveLocalPath
-
resolveRemotePath
-
appendFileAttributes
protected <A extends Appendable> A appendFileAttributes(A stdout, org.apache.sshd.sftp.client.SftpClient sftp, String path, org.apache.sshd.sftp.client.SftpClient.Attributes attrs) throws IOException - Throws:
IOException
-
getCurrentRemoteDirectory
-
setCurrentRemoteDirectory
-
getCurrentLocalDirectory
-
setCurrentLocalDirectory
-
isShowProgress
public boolean isShowProgress() -
setShowProgress
public void setShowProgress(boolean showProgress) -
isOpen
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
appendInfoValue
public static <A extends Appendable> A appendInfoValue(A sb, CharSequence name, Object value) throws IOException ///////////////////////////////////////////////////////////////////////- Throws:
IOException
-
resolveSftpClientFactory
public static org.apache.sshd.sftp.client.SftpClientFactory resolveSftpClientFactory(org.apache.sshd.client.session.ClientSession session) -
resolveVersionSelector
public static org.apache.sshd.sftp.client.SftpVersionSelector.NamedVersionSelector resolveVersionSelector(org.apache.sshd.client.session.ClientSession session) -
main
-