Package org.eclipse.jgit.transport
Class LsRefsV2Request.Builder
java.lang.Object
org.eclipse.jgit.transport.LsRefsV2Request.Builder
- Enclosing class:
- LsRefsV2Request
A builder for
LsRefsV2Request
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddServerOption
(String value) Records an application-specific option supplied in a server-option line, for later retrieval withLsRefsV2Request.getServerOptions()
.build()
Value of an agent line received after the command and before the arguments.setPeel
(boolean value) setRefPrefixes
(List<String> value) setSymrefs
(boolean value)
-
Field Details
-
refPrefixes
-
symrefs
private boolean symrefs -
peel
private boolean peel -
serverOptions
-
agent
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
setRefPrefixes
- Parameters:
value
-- Returns:
- the Builder
-
setSymrefs
- Parameters:
value
-- Returns:
- the Builder
-
setPeel
- Parameters:
value
-- Returns:
- the Builder
-
addServerOption
Records an application-specific option supplied in a server-option line, for later retrieval withLsRefsV2Request.getServerOptions()
.- Parameters:
value
- the client-supplied server-option capability, without leading "server-option=".- Returns:
- this builder
- Since:
- 5.2
-
setAgent
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".- Parameters:
value
- the client-supplied agent capability, without leading "agent="- Returns:
- this builder
- Since:
- 5.2
-
build
- Returns:
- LsRefsV2Request
-