Package org.eclipse.jgit.transport
Class LsRefsV2Request.Builder
- java.lang.Object
-
- org.eclipse.jgit.transport.LsRefsV2Request.Builder
-
- Enclosing class:
- LsRefsV2Request
public static final class LsRefsV2Request.Builder extends Object
A builder forLsRefsV2Request
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LsRefsV2Request.Builder
addServerOption(String value)
Records an application-specific option supplied in a server-option line, for later retrieval withLsRefsV2Request.getServerOptions()
.LsRefsV2Request
build()
LsRefsV2Request.Builder
setAgent(String value)
Value of an agent line received after the command and before the arguments.LsRefsV2Request.Builder
setPeel(boolean value)
LsRefsV2Request.Builder
setRefPrefixes(List<String> value)
LsRefsV2Request.Builder
setSymrefs(boolean value)
-
-
-
Method Detail
-
setRefPrefixes
public LsRefsV2Request.Builder setRefPrefixes(List<String> value)
- Parameters:
value
-- Returns:
- the Builder
-
setSymrefs
public LsRefsV2Request.Builder setSymrefs(boolean value)
- Parameters:
value
-- Returns:
- the Builder
-
setPeel
public LsRefsV2Request.Builder setPeel(boolean value)
- Parameters:
value
-- Returns:
- the Builder
-
addServerOption
public LsRefsV2Request.Builder addServerOption(@NonNull String value)
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
public LsRefsV2Request.Builder setAgent(@Nullable String value)
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
public LsRefsV2Request build()
- Returns:
- LsRefsV2Request
-
-