Package org.eclipse.jgit.transport
Class FetchV0Request.Builder
java.lang.Object
org.eclipse.jgit.transport.FetchV0Request.Builder
- Enclosing class:
FetchV0Request
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) String
(package private) int
(package private) FilterSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) FetchV0Request.Builder
addClientCapabilities
(Collection<String> clientCapabilities) (package private) FetchV0Request.Builder
addClientShallowCommit
(ObjectId shallowOid) (package private) FetchV0Request.Builder
(package private) FetchV0Request
build()
(package private) FetchV0Request.Builder
(package private) FetchV0Request.Builder
setDepth
(int d) (package private) FetchV0Request.Builder
setFilterSpec
(FilterSpec filter)
-
Field Details
-
depth
int depth -
wantIds
-
clientShallowCommits
-
filterSpec
FilterSpec filterSpec -
clientCaps
-
agent
String agent
-
-
Constructor Details
-
Builder
Builder()
-
-
Method Details
-
addWantId
- Parameters:
objectId
- object id received in a "want" line- Returns:
- this builder
-
setDepth
- Parameters:
d
- depth set in a "deepen" line- Returns:
- this builder
-
addClientShallowCommit
- Parameters:
shallowOid
- object id received in a "shallow" line- Returns:
- this builder
-
addClientCapabilities
- Parameters:
clientCapabilities
- client capabilities sent by the client in the first want line of the request- Returns:
- this builder
-
setAgent
- Parameters:
clientAgent
- agent line sent by the client in the request body- Returns:
- this builder
-
setFilterSpec
- Parameters:
filter
- the filter set in a filter line- Returns:
- this builder
-
build
FetchV0Request build()
-