public final class FirstCommand extends Object
For example: "oid oid name\0cap1 cap cap3"
Not to be confused with FirstWant
, nor with the first line
of the reference advertisement parsed by
BasePackConnection.readAdvertisedRefs
.
This class parses the inputted command line and holds the results: the actual command line and the capabilities.
Modifier and Type | Method and Description |
---|---|
static FirstCommand |
fromLine(String line)
Parse the first line of a receive-pack request.
|
Set<String> |
getCapabilities() |
String |
getLine() |
@NonNull public static FirstCommand fromLine(String line)
line
- line from the client.Copyright © 2019 Eclipse JGit Project. All rights reserved.