Top Description Inners Fields Constructors Methods
org.eclipse.jgit.transport

pack-priv final Class FetchV0Request

extends FetchRequest
Class Inheritance
Static Imports
java.util.Objects.requireNonNull

Fetch request in the V0/V1 protocol.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Inherited from org.eclipse.jgit.transport.FetchRequest:
agentclientCapabilitiesclientShallowCommitsclientSIDdeepenNotsdeepenSincedepthfilterSpecwantIds

Constructor Summary

AccessConstructor and Description
pack-priv
FetchV0Request(Set<ObjectId> wantIds, int depth, Set<ObjectId> clientShallowCommits, FilterSpec filterSpec, Set<String> clientCapabilities, int deepenSince, List<String> deepenNotRefs, String agent, String clientSID)

Method Summary

Inherited from org.eclipse.jgit.transport.FetchRequest:
getAgentgetClientCapabilitiesgetClientShallowCommitsgetClientSIDgetDeepenNotsgetDeepenSincegetDepthgetFilterSpecgetWantIds

Constructor Detail

FetchV0Requestback to summary
pack-priv FetchV0Request(Set<ObjectId> wantIds, int depth, Set<ObjectId> clientShallowCommits, FilterSpec filterSpec, Set<String> clientCapabilities, int deepenSince, List<String> deepenNotRefs, String agent, String clientSID)
org.eclipse.jgit.transport back to summary

pack-priv final Class FetchV0Request.Builder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv final Set<String>
pack-priv final Set<ObjectId>
pack-priv String
pack-priv final List<String>
pack-priv int
pack-priv int
pack-priv FilterSpec
pack-priv final Set<ObjectId>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv FetchV0Request.Builder

Returns:

this builder
addClientCapabilities
(Collection<String>
client capabilities sent by the client in the first want line of the request
clientCapabilities
)

Add client capabilities

pack-priv FetchV0Request.Builder

Returns:

this builder
addClientShallowCommit
(ObjectId
object id received in a "shallow" line
shallowOid
)

Add client shallow commit

pack-priv FetchV0Request.Builder

Returns:

this builder
addDeepenNot
(String
reference received in a "deepen not" line
deepenNot
)

Add "deepen not"

pack-priv FetchV0Request.Builder

Returns:

this builder
addWantId
(ObjectId
object id received in a "want" line
objectId
)

Add wantId

pack-priv FetchV0Request
pack-priv int

Returns:

shallow since value, sent before in a "deepen since" line. 0 by default.
getDeepenSince
()

Get "deepen since

pack-priv int

Returns:

depth set in the request (via a "deepen" line). Defaulting to 0 if not set.
getDepth
()

Get depth

pack-priv boolean

Returns:

true if there has been at least one "deepen not" line in the request so far
hasDeepenNots
()

Whether there's at least one "deepen not" line

pack-priv FetchV0Request.Builder

Returns:

this builder
setAgent
(String
agent line sent by the client in the request body
clientAgent
)

Set agent

pack-priv FetchV0Request.Builder

Returns:

this builder
setClientSID
(String
session-id line sent by the client in the request body
clientSID
)

Set client session id

pack-priv FetchV0Request.Builder

Returns:

this builder
setDeepenSince
(int
Unix timestamp received in a "deepen since" line
value
)

Set "deepen since"

pack-priv FetchV0Request.Builder

Returns:

this builder
setDepth
(int
depth set in a "deepen" line
d
)

Set depth

pack-priv FetchV0Request.Builder

Returns:

this builder
setFilterSpec
(FilterSpec
the filter set in a filter line
filter
)

Set filter spec

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

agentback to summary
pack-priv String agent
clientCapsback to summary
pack-priv final Set<String> clientCaps
clientShallowCommitsback to summary
pack-priv final Set<ObjectId> clientShallowCommits
clientSIDback to summary
pack-priv String clientSID
deepenNotsback to summary
pack-priv final List<String> deepenNots
deepenSinceback to summary
pack-priv int deepenSince
depthback to summary
pack-priv int depth
filterSpecback to summary
pack-priv FilterSpec filterSpec
wantIdsback to summary
pack-priv final Set<ObjectId> wantIds

Constructor Detail

Builderback to summary
pack-priv Builder()

Method Detail

addClientCapabilitiesback to summary
pack-priv FetchV0Request.Builder addClientCapabilities(Collection<String> clientCapabilities)

Add client capabilities

Parameters
clientCapabilities:Collection<String>

client capabilities sent by the client in the first want line of the request

Returns:FetchV0Request.Builder

this builder

addClientShallowCommitback to summary
pack-priv FetchV0Request.Builder addClientShallowCommit(ObjectId shallowOid)

Add client shallow commit

Parameters
shallowOid:ObjectId

object id received in a "shallow" line

Returns:FetchV0Request.Builder

this builder

addDeepenNotback to summary
pack-priv FetchV0Request.Builder addDeepenNot(String deepenNot)

Add "deepen not"

Parameters
deepenNot:String

reference received in a "deepen not" line

Returns:FetchV0Request.Builder

this builder

addWantIdback to summary
pack-priv FetchV0Request.Builder addWantId(ObjectId objectId)

Add wantId

Parameters
objectId:ObjectId

object id received in a "want" line

Returns:FetchV0Request.Builder

this builder

buildback to summary
pack-priv FetchV0Request build()
getDeepenSinceback to summary
pack-priv int getDeepenSince()

Get "deepen since

Returns:int

shallow since value, sent before in a "deepen since" line. 0 by default.

getDepthback to summary
pack-priv int getDepth()

Get depth

Returns:int

depth set in the request (via a "deepen" line). Defaulting to 0 if not set.

hasDeepenNotsback to summary
pack-priv boolean hasDeepenNots()

Whether there's at least one "deepen not" line

Returns:boolean

true if there has been at least one "deepen not" line in the request so far

setAgentback to summary
pack-priv FetchV0Request.Builder setAgent(String clientAgent)

Set agent

Parameters
clientAgent:String

agent line sent by the client in the request body

Returns:FetchV0Request.Builder

this builder

setClientSIDback to summary
pack-priv FetchV0Request.Builder setClientSID(String clientSID)

Set client session id

Parameters
clientSID:String

session-id line sent by the client in the request body

Returns:FetchV0Request.Builder

this builder

setDeepenSinceback to summary
pack-priv FetchV0Request.Builder setDeepenSince(int value)

Set "deepen since"

Parameters
value:int

Unix timestamp received in a "deepen since" line

Returns:FetchV0Request.Builder

this builder

setDepthback to summary
pack-priv FetchV0Request.Builder setDepth(int d)

Set depth

Parameters
d:int

depth set in a "deepen" line

Returns:FetchV0Request.Builder

this builder

setFilterSpecback to summary
pack-priv FetchV0Request.Builder setFilterSpec(FilterSpec filter)

Set filter spec

Parameters
filter:FilterSpec

the filter set in a filter line

Returns:FetchV0Request.Builder

this builder