Package net.schmizz.sshj.xfer.scp
Class ScpCommandLine
- java.lang.Object
-
- net.schmizz.sshj.xfer.scp.ScpCommandLine
-
public class ScpCommandLine extends java.lang.Object
Command line to be sent to the remote SSH process to setup an SCP process in the correct mode.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ScpCommandLine.Arg
static class
ScpCommandLine.EscapeMode
-
Field Summary
Fields Modifier and Type Field Description private java.util.LinkedHashMap<ScpCommandLine.Arg,java.lang.String>
arguments
private ScpCommandLine.EscapeMode
mode
private java.lang.String
path
private static java.lang.String
SCP_COMMAND
-
Constructor Summary
Constructors Constructor Description ScpCommandLine()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addArgument(ScpCommandLine.Arg name, java.lang.String value, boolean accept)
(package private) ScpCommandLine
and(ScpCommandLine.Arg name)
(package private) ScpCommandLine
and(ScpCommandLine.Arg name, boolean accept)
(package private) ScpCommandLine
and(ScpCommandLine.Arg name, java.lang.String value)
(package private) ScpCommandLine
and(ScpCommandLine.Arg name, java.lang.String value, boolean accept)
(package private) java.lang.String
toCommandLine()
(package private) static ScpCommandLine
with(ScpCommandLine.Arg name)
(package private) static ScpCommandLine
with(ScpCommandLine.Arg name, boolean accept)
(package private) static ScpCommandLine
with(ScpCommandLine.Arg name, java.lang.String value)
(package private) static ScpCommandLine
with(ScpCommandLine.Arg name, java.lang.String value, boolean accept)
(package private) ScpCommandLine
withPath(java.lang.String path, ScpCommandLine.EscapeMode mode)
-
-
-
Field Detail
-
SCP_COMMAND
private static final java.lang.String SCP_COMMAND
- See Also:
- Constant Field Values
-
mode
private ScpCommandLine.EscapeMode mode
-
arguments
private java.util.LinkedHashMap<ScpCommandLine.Arg,java.lang.String> arguments
-
path
private java.lang.String path
-
-
Method Detail
-
with
static ScpCommandLine with(ScpCommandLine.Arg name)
-
with
static ScpCommandLine with(ScpCommandLine.Arg name, java.lang.String value)
-
with
static ScpCommandLine with(ScpCommandLine.Arg name, boolean accept)
-
with
static ScpCommandLine with(ScpCommandLine.Arg name, java.lang.String value, boolean accept)
-
addArgument
private void addArgument(ScpCommandLine.Arg name, java.lang.String value, boolean accept)
-
and
ScpCommandLine and(ScpCommandLine.Arg name)
-
and
ScpCommandLine and(ScpCommandLine.Arg name, java.lang.String value)
-
and
ScpCommandLine and(ScpCommandLine.Arg name, boolean accept)
-
and
ScpCommandLine and(ScpCommandLine.Arg name, java.lang.String value, boolean accept)
-
withPath
ScpCommandLine withPath(java.lang.String path, ScpCommandLine.EscapeMode mode)
-
toCommandLine
java.lang.String toCommandLine()
-
-