Package org.jenkinsci.main.modules.sshd
Class SshCommandFactory.CommandLine
- Enclosing class:
SshCommandFactory
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.
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
CommandLine
-
-
Method Details
-
getSingleLine
Returns unaltered raw string. -
get
-
size
public int size()- Specified by:
sizein interfaceCollection<String>- Specified by:
sizein interfaceList<String>- Specified by:
sizein classAbstractCollection<String>
-