Class ScpCommandMain

    • Field Detail

      • SCP_PORT_OPTION

        public static final java.lang.String SCP_PORT_OPTION
        Command line option used to indicate a non-default port
        See Also:
        Constant Field Values
      • SCP_REMOTE_TO_REMOTE_OPTION

        public static final java.lang.String SCP_REMOTE_TO_REMOTE_OPTION
        Copies between two remote hosts are transferred through the local host
        See Also:
        Constant Field Values
    • Constructor Detail

      • ScpCommandMain

        public ScpCommandMain()
    • Method Detail

      • normalizeCommandArguments

        public static java.lang.String[] normalizeCommandArguments​(java.io.PrintStream stdout,
                                                                   java.io.PrintStream stderr,
                                                                   java.lang.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,
                                                        java.util.Collection<java.lang.String> effective)
      • resolveScpClientCreator

        public static org.apache.sshd.scp.client.ScpClientCreator resolveScpClientCreator​(java.io.PrintStream stderr,
                                                                                          java.lang.String... args)
      • parseCopyOptions

        public static java.util.Set<org.apache.sshd.scp.client.ScpClient.Option> parseCopyOptions​(java.lang.String[] args)
      • showUsageMessage

        public static void showUsageMessage​(java.io.PrintStream stderr)
      • xferLocalToRemote

        public static void xferLocalToRemote​(java.io.BufferedReader stdin,
                                             java.io.PrintStream stdout,
                                             java.io.PrintStream stderr,
                                             java.lang.String[] args,
                                             org.apache.sshd.scp.common.ScpLocation source,
                                             org.apache.sshd.scp.common.ScpLocation target,
                                             java.util.Collection<org.apache.sshd.scp.client.ScpClient.Option> options,
                                             java.io.OutputStream logStream,
                                             java.util.logging.Level level,
                                             boolean quiet)
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • xferRemoteToRemote

        public static void xferRemoteToRemote​(java.io.BufferedReader stdin,
                                              java.io.PrintStream stdout,
                                              java.io.PrintStream stderr,
                                              java.lang.String[] args,
                                              org.apache.sshd.scp.common.ScpLocation source,
                                              org.apache.sshd.scp.common.ScpLocation target,
                                              java.util.Collection<org.apache.sshd.scp.client.ScpClient.Option> options,
                                              java.io.OutputStream logStream,
                                              java.util.logging.Level level,
                                              boolean quiet)
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception