Package org.eclipse.jgit.transport
Class FetchV2Request
java.lang.Object
org.eclipse.jgit.transport.FetchRequest
org.eclipse.jgit.transport.FetchV2Request
Fetch request from git protocol v2.
This is used as an input to ProtocolV2Hook
.
- Since:
- 5.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
A builder forFetchV2Request
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final boolean
Fields inherited from class org.eclipse.jgit.transport.FetchRequest
agent, clientCapabilities, clientShallowCommits, deepenNotRefs, deepenSince, depth, filterSpec, wantIds
-
Constructor Summary
ConstructorsConstructorDescriptionFetchV2Request
(List<ObjectId> peerHas, List<String> wantedRefs, Set<ObjectId> wantIds, Set<ObjectId> clientShallowCommits, int deepenSince, List<String> deepenNotRefs, int depth, FilterSpec filterSpec, boolean doneReceived, Set<String> clientCapabilities, String agent, List<String> serverOptions, boolean sidebandAll, List<String> packfileUriProtocols) -
Method Summary
Modifier and TypeMethodDescription(package private) static FetchV2Request.Builder
builder()
Options received in server-option lines.(package private) boolean
(package private) boolean
Methods inherited from class org.eclipse.jgit.transport.FetchRequest
getAgent, getClientCapabilities, getClientShallowCommits, getDeepenNotRefs, getDeepenSince, getDepth, getFilterSpec, getWantIds
-
Field Details
-
peerHas
-
wantedRefs
-
doneReceived
private final boolean doneReceived -
serverOptions
-
sidebandAll
private final boolean sidebandAll -
packfileUriProtocols
-
-
Constructor Details
-
FetchV2Request
FetchV2Request(@NonNull List<ObjectId> peerHas, @NonNull List<String> wantedRefs, @NonNull Set<ObjectId> wantIds, @NonNull Set<ObjectId> clientShallowCommits, int deepenSince, @NonNull List<String> deepenNotRefs, int depth, @NonNull FilterSpec filterSpec, boolean doneReceived, @NonNull Set<String> clientCapabilities, @Nullable String agent, @NonNull List<String> serverOptions, boolean sidebandAll, @NonNull List<String> packfileUriProtocols)
-
-
Method Details
-
getPeerHas
- Returns:
- object ids received in the "have" lines
-
getWantedRefs
- Returns:
- list of references received in "want-ref" lines
- Since:
- 5.4
-
wasDoneReceived
boolean wasDoneReceived()- Returns:
- true if the request had a "done" line
-
getServerOptions
Options received in server-option lines. The caller can choose to act on these in an application-specific way- Returns:
- Immutable list of server options received in the request
- Since:
- 5.2
-
getSidebandAll
boolean getSidebandAll()- Returns:
- true if "sideband-all" was received
-
getPackfileUriProtocols
-
builder
- Returns:
- A builder of
FetchV2Request
.
-