Package net.schmizz.sshj.xfer.scp
Class ScpCommandLine
- java.lang.Object
-
- net.schmizz.sshj.xfer.scp.ScpCommandLine
-
public class ScpCommandLine extends java.lang.ObjectCommand 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 classScpCommandLine.Argstatic classScpCommandLine.EscapeMode
-
Field Summary
Fields Modifier and Type Field Description private java.util.LinkedHashMap<ScpCommandLine.Arg,java.lang.String>argumentsprivate ScpCommandLine.EscapeModemodeprivate java.lang.Stringpathprivate static java.lang.StringSCP_COMMAND
-
Constructor Summary
Constructors Constructor Description ScpCommandLine()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddArgument(ScpCommandLine.Arg name, java.lang.String value, boolean accept)ScpCommandLineand(ScpCommandLine.Arg name)ScpCommandLineand(ScpCommandLine.Arg name, boolean accept)ScpCommandLineand(ScpCommandLine.Arg name, java.lang.String value)ScpCommandLineand(ScpCommandLine.Arg name, java.lang.String value, boolean accept)(package private) booleanhas(ScpCommandLine.Arg arg)(package private) java.lang.StringtoCommandLine()static ScpCommandLinewith(ScpCommandLine.Arg name)static ScpCommandLinewith(ScpCommandLine.Arg name, boolean accept)static ScpCommandLinewith(ScpCommandLine.Arg name, java.lang.String value)static ScpCommandLinewith(ScpCommandLine.Arg name, java.lang.String value, boolean accept)(package private) ScpCommandLinewithPath(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 final 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()
-
-