Class FirstCommand
- java.lang.Object
-
- org.eclipse.jgit.internal.transport.parser.FirstCommand
-
public final class FirstCommand extends Object
In a push, the client sends a list of commands. The first command is special, as it can include a list of capabilities at its end.For example: "oid oid name\0cap1 cap cap3"
Not to be confused with
FirstWant
, nor with the first line of the reference advertisement parsed byBasePackConnection.readAdvertisedRefs
.This class parses the inputted command line and holds the results: the actual command line and the capabilities.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FirstCommand
fromLine(String line)
Parse the first line of a receive-pack request.Set<String>
getCapabilities()
String
getLine()
-
-
-
Method Detail
-
fromLine
@NonNull public static FirstCommand fromLine(String line)
Parse the first line of a receive-pack request.- Parameters:
line
- line from the client.- Returns:
- an instance of FirstCommand with capabilities parsed out
-
-