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 StringCommand line option used to indicate a non-default portstatic final StringCopies between two remote hosts are transferred through the local hostFields inherited from class SshClientCliSupport
SSH_CLIENT_PORT_OPTIONFields inherited from class CliSupport
DEFAULT_IO_SERVICE_FACTORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidadjustRemoteTargetArguments(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.ScpClientCreatorresolveScpClientCreator(PrintStream stderr, String... args) static voidshowUsageMessage(PrintStream stderr) static voidxferLocalToRemote(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 voidxferRemoteToRemote(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 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
-
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
-