- java.lang.Object
-
- org.eclipse.jgit.transport.LsRefsV2Request
-
public final class LsRefsV2Request extends Object
ls-refs protocol v2 request.This is used as an input to
ProtocolV2Hook.- Since:
- 5.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLsRefsV2Request.BuilderA builder forLsRefsV2Request.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LsRefsV2Request.Builderbuilder()StringgetAgent()StringgetClientSID()booleangetPeel()List<String>getRefPrefixes()List<String>getServerOptions()Get application-specific options provided by the client using --server-option.booleangetSymrefs()
-
-
-
Method Detail
-
getRefPrefixes
public List<String> getRefPrefixes()
- Returns:
- ref prefixes that the client requested.
-
getSymrefs
public boolean getSymrefs()
- Returns:
- true if the client requests symbolic references.
-
getPeel
public boolean getPeel()
- Returns:
- true if the client requests tags to be peeled.
-
getClientSID
@Nullable public String getClientSID()
- Returns:
- session-id as reported by the client
- Since:
- 6.4
-
getServerOptions
@NonNull public List<String> getServerOptions()
Get application-specific options provided by the client using --server-option.It returns just the content, without the "server-option=" prefix. E.g. a request with server-option=A and server-option=B lines returns the list [A, B].
- Returns:
- application-specific options from the client as an unmodifiable list
- Since:
- 5.2
-
builder
public static LsRefsV2Request.Builder builder()
- Returns:
- A builder of
LsRefsV2Request.
-
-