Package org.apache.sshd.cli.client
Class ScpCommandMain
java.lang.Object
org.apache.sshd.cli.CliSupport
org.apache.sshd.cli.client.SshClientCliSupport
org.apache.sshd.cli.client.ScpCommandMain
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Command line option used to indicate a non-default portstatic final String
Copies between two remote hosts are transferred through the local hostFields inherited from class org.apache.sshd.cli.client.SshClientCliSupport
SSH_CLIENT_PORT_OPTION
Fields inherited from class org.apache.sshd.cli.CliSupport
DEFAULT_IO_SERVICE_FACTORY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
adjustRemoteTargetArguments
(org.apache.sshd.scp.common.ScpLocation remote, org.apache.sshd.scp.common.ScpLocation source, org.apache.sshd.scp.common.ScpLocation target, Collection<String> effective) static void
static String[]
normalizeCommandArguments
(PrintStream stdout, PrintStream stderr, String... args) static Set
<org.apache.sshd.scp.client.ScpClient.Option> parseCopyOptions
(String[] args) static org.apache.sshd.scp.client.ScpClientCreator
resolveScpClientCreator
(PrintStream stderr, String... args) static void
showUsageMessage
(PrintStream stderr) static void
xferLocalToRemote
(BufferedReader stdin, PrintStream stdout, PrintStream stderr, String[] args, org.apache.sshd.scp.common.ScpLocation source, org.apache.sshd.scp.common.ScpLocation target, Collection<org.apache.sshd.scp.client.ScpClient.Option> options, OutputStream logStream, Level level, boolean quiet) static void
xferRemoteToRemote
(BufferedReader stdin, PrintStream stdout, PrintStream stderr, String[] args, org.apache.sshd.scp.common.ScpLocation source, org.apache.sshd.scp.common.ScpLocation target, Collection<org.apache.sshd.scp.client.ScpClient.Option> options, OutputStream logStream, Level level, boolean quiet) Methods inherited from class org.apache.sshd.cli.client.SshClientCliSupport
isArgumentedOption, resolveClientEnvironment, resolveClientEnvironment, resolveClientPtyModes, resolveClientPtyOptions, resolveClientPtyOptions, resolveHost, resolveIdentityFile, resolveLoggingTargetStream, resolveLoggingTargetStream, setupClient, setupClientSession, setupDefaultClient, setupLogging, setupServerKeyVerifier, setupSessionExtensions, setupSessionIdentities, setupSessionUserInteraction
Methods inherited from class org.apache.sshd.cli.CliSupport
createLoggingIoServiceEventListener, createLoggingSessionListener, printFieldsValues, resolveBuiltinIoServiceFactory, resolveIoServiceFactory, setupCiphers, setupCiphers, setupCompressions, setupCompressions, setupIoServiceFactory, setupMacs, setupMacs, setupUserAuthFactories, splitCommandLineArguments
-
Field Details
-
SCP_PORT_OPTION
Command line option used to indicate a non-default port- See Also:
-
SCP_REMOTE_TO_REMOTE_OPTION
Copies between two remote hosts are transferred through the local host- See Also:
-
-
Constructor Details
-
ScpCommandMain
public ScpCommandMain()
-
-
Method Details
-
normalizeCommandArguments
public static String[] normalizeCommandArguments(PrintStream stdout, PrintStream stderr, String... args) -
adjustRemoteTargetArguments
private static void adjustRemoteTargetArguments(org.apache.sshd.scp.common.ScpLocation remote, org.apache.sshd.scp.common.ScpLocation source, org.apache.sshd.scp.common.ScpLocation target, Collection<String> effective) -
resolveScpClientCreator
public static org.apache.sshd.scp.client.ScpClientCreator resolveScpClientCreator(PrintStream stderr, String... args) -
parseCopyOptions
-
showUsageMessage
-
xferLocalToRemote
public static void xferLocalToRemote(BufferedReader stdin, PrintStream stdout, PrintStream stderr, String[] args, org.apache.sshd.scp.common.ScpLocation source, org.apache.sshd.scp.common.ScpLocation target, Collection<org.apache.sshd.scp.client.ScpClient.Option> options, OutputStream logStream, Level level, boolean quiet) throws Exception - Throws:
Exception
-
xferRemoteToRemote
public static void xferRemoteToRemote(BufferedReader stdin, PrintStream stdout, PrintStream stderr, String[] args, org.apache.sshd.scp.common.ScpLocation source, org.apache.sshd.scp.common.ScpLocation target, Collection<org.apache.sshd.scp.client.ScpClient.Option> options, OutputStream logStream, Level level, boolean quiet) throws Exception - Throws:
Exception
-
main
- Throws:
Exception
-