org.jenkinsci.main.modules.sshd
Class SshCommandFactory.CommandLine
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<String>
org.jenkinsci.main.modules.sshd.SshCommandFactory.CommandLine
- All Implemented Interfaces:
- Iterable<String>, Collection<String>, List<String>
- Enclosing class:
- SshCommandFactory
public static final class SshCommandFactory.CommandLine
- extends AbstractList<String>
Represents a command line.
Unlike the rest of Unix, SSH protocol uses a single string (as opposed to string array)
to pass around a whole command line between the client and the server,
and it's up to the server to interpret that string as an array.
This class encapsulates this single-line command arguments and provide both
tokenized versions (for typical use) and the direct access to that string (for unusual case),
thereby ensuring the consistency across tokenization.
This class implements tokenization that correctly handles escaping by quotes.
| Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
SshCommandFactory.CommandLine
public SshCommandFactory.CommandLine(String singleLine)
getSingleLine
public String getSingleLine()
- Returns unaltered raw string.
get
public String get(int index)
- Specified by:
get in interface List<String>- Specified by:
get in class AbstractList<String>
size
public int size()
- Specified by:
size in interface Collection<String>- Specified by:
size in interface List<String>- Specified by:
size in class AbstractCollection<String>
Copyright © 2004-2012. All Rights Reserved.