This is used as an input to ProtocolV2Hook.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | FetchV2Request.
A builder for |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final List | |
| private final List | |
| private final List | |
| private final boolean | |
| private final boolean | |
| private final List |
| Access | Constructor and Description |
|---|---|
| pack-priv | FetchV2Request(List<ObjectId> peerHas, List<String> wantedRefs, Set<ObjectId> wantIds, Set<ObjectId> clientShallowCommits, int deepenSince, List<String> deepenNots, int depth, FilterSpec filterSpec, boolean doneReceived, boolean waitForDone, Set<String> clientCapabilities, String agent, List<String> serverOptions, boolean sidebandAll, List<String> packfileUriProtocols, String clientSID)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static FetchV2Request. | |
| pack-priv List | |
| pack-priv List | Returns: object ids received in the "have" linesGet object ids received in the "have" lines |
| public List | Returns: Immutable list of server options received in the requestOptions received in server-option lines. |
| pack-priv boolean | |
| public List | Returns: list of references received in "want-ref" linesGet list of references received in "want-ref" lines |
| pack-priv boolean | Returns: true if the request had a "done" lineWhether the request had a "done" line |
| pack-priv boolean | Returns: true if the request had a "wait-for-done" lineWhether the request had a "wait-for-done" line |
| doneReceived | back to summary |
|---|---|
| private final boolean doneReceived | |
| packfileUriProtocols | back to summary |
|---|---|
| private final List<String> packfileUriProtocols
| |
| peerHas | back to summary |
|---|---|
| private final List<ObjectId> peerHas | |
| serverOptions | back to summary |
|---|---|
| private final List<String> serverOptions
| |
| sidebandAll | back to summary |
|---|---|
| private final boolean sidebandAll | |
| waitForDone | back to summary |
|---|---|
| private final boolean waitForDone | |
| wantedRefs | back to summary |
|---|---|
| private final List<String> wantedRefs | |
| FetchV2Request | back to summary |
|---|---|
| pack-priv FetchV2Request(List<ObjectId> peerHas, List<String> wantedRefs, Set<ObjectId> wantIds, Set<ObjectId> clientShallowCommits, int deepenSince, List<String> deepenNots, int depth, FilterSpec filterSpec, boolean doneReceived, boolean waitForDone, Set<String> clientCapabilities, String agent, List<String> serverOptions, boolean sidebandAll, List<String> packfileUriProtocols, String clientSID) | |
| builder | back to summary |
|---|---|
| pack-priv static FetchV2Request. Get builder
| |
| getPackfileUriProtocols | back to summary |
|---|---|
pack-priv List
| |
| getPeerHas | back to summary |
|---|---|
| pack-priv List Get object ids received in the "have" lines | |
| getServerOptions | back to summary |
|---|---|
| public List Options received in server-option lines. The caller can choose to act on these in an application-specific way | |
| getSidebandAll | back to summary |
|---|---|
| pack-priv boolean getSidebandAll() Whether "sideband-all" was received
| |
| getWantedRefs | back to summary |
|---|---|
| public List Get list of references received in "want-ref" lines | |
| wasDoneReceived | back to summary |
|---|---|
| pack-priv boolean wasDoneReceived() Whether the request had a "done" line
| |
| wasWaitForDoneReceived | back to summary |
|---|---|
| pack-priv boolean wasWaitForDoneReceived() Whether the request had a "wait-for-done" line
| |
FetchV2Request.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | |
| pack-priv final Set | |
| pack-priv final Set | |
| pack-priv String | |
| pack-priv final List | |
| pack-priv int | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv FilterSpec | |
| pack-priv final List | |
| pack-priv final List | |
| pack-priv final List | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv final List | |
| pack-priv final Set |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv FetchV2Request. | Returns: this buildercapability line sent by the client clientCapability)Add client capability |
| pack-priv FetchV2Request. | Returns: this builderobject id received in a "shallow" line shallowOid)Add Object received in a "shallow" line |
| pack-priv FetchV2Request. | Returns: this builderreference received in a "deepen not" line deepenNot)Add reference received in a "deepen not" line |
| pack-priv FetchV2Request. | |
| pack-priv FetchV2Request. | Returns: this builderobject id received in a "have" line objectId)Add object the peer has |
| pack-priv FetchV2Request. | Returns: this builderthe client-supplied server-option capability, without
leading "server-option=". value)Records an application-specific option supplied in a server-option
line, for later retrieval with
|
| pack-priv FetchV2Request. | Returns: this builderreference name refName)Add Ref received in "want-ref" line and the object-id it refers to |
| pack-priv FetchV2Request. | |
| pack-priv FetchV2Request | |
| pack-priv int | Returns: shallow since value, sent before in a "deepen since" line. 0 by default.Get shallow since value |
| pack-priv int | Returns: depth set in the request (via a "deepen" line). Defaulting to 0 if not set.Get depth set in request |
| pack-priv boolean | Returns: true if there has been at least one "deepen not" line in the request so farWhether there has been at least one ""deepen not" line |
| pack-priv FetchV2Request. | |
| pack-priv FetchV2Request. | Returns: this builderthe client-supplied session capability, without the
leading "session-id=" clientSIDValue)Set value of client-supplied session capability |
| pack-priv FetchV2Request. | Returns: this builderUnix timestamp received in a "deepen since" line value)Set Unix timestamp received in a "deepen since" line |
| pack-priv FetchV2Request. | Returns: this builderDepth received in a "deepen" line d)Set depth received in "deepen" line |
| pack-priv FetchV2Request. | |
| pack-priv FetchV2Request. | |
| pack-priv FetchV2Request. | Returns: this buildertrue if client sent "sideband-all" value)Set whether client sent "sideband-all |
| pack-priv FetchV2Request. |
| agent | back to summary |
|---|---|
| pack-priv String agent
| |
| clientCapabilities | back to summary |
|---|---|
| pack-priv final Set<String> clientCapabilities | |
| clientShallowCommits | back to summary |
|---|---|
| pack-priv final Set<ObjectId> clientShallowCommits | |
| clientSID | back to summary |
|---|---|
| pack-priv String clientSID
| |
| deepenNots | back to summary |
|---|---|
| pack-priv final List<String> deepenNots | |
| deepenSince | back to summary |
|---|---|
| pack-priv int deepenSince | |
| depth | back to summary |
|---|---|
| pack-priv int depth | |
| doneReceived | back to summary |
|---|---|
| pack-priv boolean doneReceived | |
| filterSpec | back to summary |
|---|---|
| pack-priv FilterSpec filterSpec | |
| packfileUriProtocols | back to summary |
|---|---|
| pack-priv final List<String> packfileUriProtocols | |
| peerHas | back to summary |
|---|---|
| pack-priv final List<ObjectId> peerHas | |
| serverOptions | back to summary |
|---|---|
| pack-priv final List<String> serverOptions | |
| sidebandAll | back to summary |
|---|---|
| pack-priv boolean sidebandAll | |
| waitForDone | back to summary |
|---|---|
| pack-priv boolean waitForDone | |
| wantedRefs | back to summary |
|---|---|
| pack-priv final List<String> wantedRefs | |
| wantIds | back to summary |
|---|---|
| pack-priv final Set<ObjectId> wantIds | |
| Builder | back to summary |
|---|---|
| private Builder() | |
| addClientCapability | back to summary |
|---|---|
| pack-priv FetchV2Request. Add client capability
| |
| addClientShallowCommit | back to summary |
|---|---|
| pack-priv FetchV2Request. Add Object received in a "shallow" line
| |
| addDeepenNot | back to summary |
|---|---|
| pack-priv FetchV2Request. Add reference received in a "deepen not" line
| |
| addPackfileUriProtocol | back to summary |
|---|---|
| pack-priv FetchV2Request. | |
| addPeerHas | back to summary |
|---|---|
| pack-priv FetchV2Request. Add object the peer has
| |
| addServerOption | back to summary |
|---|---|
| pack-priv FetchV2Request. Records an application-specific option supplied in a server-option
line, for later retrieval with
| |
| addWantedRef | back to summary |
|---|---|
| pack-priv FetchV2Request. Add Ref received in "want-ref" line and the object-id it refers to
| |
| addWantId | back to summary |
|---|---|
| pack-priv FetchV2Request. Add object received in "want" line
| |
| build | back to summary |
|---|---|
| pack-priv FetchV2Request build() Build initialized fetch request
| |
| getDeepenSince | back to summary |
|---|---|
| pack-priv int getDeepenSince() Get shallow since value
| |
| getDepth | back to summary |
|---|---|
| pack-priv int getDepth() Get depth set in request
| |
| hasDeepenNots | back to summary |
|---|---|
| pack-priv boolean hasDeepenNots() Whether there has been at least one ""deepen not" line
| |
| setAgent | back to summary |
|---|---|
| pack-priv FetchV2Request. Value of an agent line received after the command and before the arguments. E.g. "agent=a.b.c/1.0" should set "a.b.c/1.0".
| |
| setClientSID | back to summary |
|---|---|
| pack-priv FetchV2Request. Set value of client-supplied session capability
| |
| setDeepenSince | back to summary |
|---|---|
| pack-priv FetchV2Request. Set Unix timestamp received in a "deepen since" line
| |
| setDepth | back to summary |
|---|---|
| pack-priv FetchV2Request. Set depth received in "deepen" line
| |
| setDoneReceived | back to summary |
|---|---|
| pack-priv FetchV2Request. Mark that the "done" line has been received.
| |
| setFilterSpec | back to summary |
|---|---|
| pack-priv FetchV2Request. Set filter spec
| |
| setSidebandAll | back to summary |
|---|---|
| pack-priv FetchV2Request. Set whether client sent "sideband-all
| |
| setWaitForDone | back to summary |
|---|---|
| pack-priv FetchV2Request. Mark that the "wait-for-done" line has been received.
| |