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 for LsRefsV2Request.
  • Method Details

    • setRefPrefixes

      public LsRefsV2Request.Builder setRefPrefixes(List<String> value)
      Set ref prefixes
      Parameters:
      value - ref prefix values
      Returns:
      the Builder
    • setSymrefs

      public LsRefsV2Request.Builder setSymrefs(boolean value)
      Set symrefs
      Parameters:
      value - of symrefs
      Returns:
      the Builder
    • setPeel

      public LsRefsV2Request.Builder setPeel(boolean value)
      Set whether to peel tags
      Parameters:
      value - of peel
      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 with LsRefsV2Request.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
    • setClientSID

      public LsRefsV2Request.Builder setClientSID(@Nullable String value)
      Value of a session-id line received after the command and before the arguments. E.g. "session-id=a.b.c" should set "a.b.c".
      Parameters:
      value - the client-supplied session-id capability, without leading "session-id="
      Returns:
      this builder
      Since:
      6.4
    • build

      public LsRefsV2Request build()
      Builds the request
      Returns:
      LsRefsV2Request the request