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 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)
ScpCommandLine
and(ScpCommandLine.Arg name)
ScpCommandLine
and(ScpCommandLine.Arg name, boolean accept)
ScpCommandLine
and(ScpCommandLine.Arg name, java.lang.String value)
ScpCommandLine
and(ScpCommandLine.Arg name, java.lang.String value, boolean accept)
(package private) boolean
has(ScpCommandLine.Arg arg)
(package private) java.lang.String
toCommandLine()
static ScpCommandLine
with(ScpCommandLine.Arg name)
static ScpCommandLine
with(ScpCommandLine.Arg name, boolean accept)
static ScpCommandLine
with(ScpCommandLine.Arg name, java.lang.String value)
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
public static ScpCommandLine with(ScpCommandLine.Arg name)
-
with
public static ScpCommandLine with(ScpCommandLine.Arg name, java.lang.String value)
-
with
public static ScpCommandLine with(ScpCommandLine.Arg name, boolean accept)
-
with
public 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
public ScpCommandLine and(ScpCommandLine.Arg name)
-
and
public ScpCommandLine and(ScpCommandLine.Arg name, java.lang.String value)
-
and
public ScpCommandLine and(ScpCommandLine.Arg name, boolean accept)
-
and
public ScpCommandLine and(ScpCommandLine.Arg name, java.lang.String value, boolean accept)
-
withPath
ScpCommandLine withPath(java.lang.String path, ScpCommandLine.EscapeMode mode)
-
has
boolean has(ScpCommandLine.Arg arg)
-
toCommandLine
java.lang.String toCommandLine()
-
-