This is used as an input to ProtocolV2Hook.
| Modifier and Type | Class and Description |
|---|---|
| public static class | LsRefsV2Request.
A builder for |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final boolean | |
| private final List | |
| private final List | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static LsRefsV2Request. | |
| public String | |
| public String | |
| public boolean | Returns: true if the client requests tags to be peeled.Whether the client requests tags to be peeled |
| public List | |
| public List | Returns: application-specific options from the client as an unmodifiable listGet application-specific options provided by the client using --server-option. |
| public boolean | Returns: true if the client requests symbolic references.Whether the client requests symbolic references |
| agent | back to summary |
|---|---|
| private final String agent
| |
| clientSID | back to summary |
|---|---|
| private final String clientSID | |
| peel | back to summary |
|---|---|
| private final boolean peel | |
| refPrefixes | back to summary |
|---|---|
| private final List<String> refPrefixes | |
| serverOptions | back to summary |
|---|---|
| private final List<String> serverOptions
| |
| symrefs | back to summary |
|---|---|
| private final boolean symrefs | |
| LsRefsV2Request | back to summary |
|---|---|
| private LsRefsV2Request(List<String> refPrefixes, boolean symrefs, boolean peel, String agent, List<String> serverOptions, String clientSID) | |
| builder | back to summary |
|---|---|
| public static LsRefsV2Request. Create builder
| |
| getAgent | back to summary |
|---|---|
| public String getAgent() Get agent reported by the client | |
| getClientSID | back to summary |
|---|---|
| public String getClientSID() Get session-id reported by the client | |
| getPeel | back to summary |
|---|---|
| public boolean getPeel() Whether the client requests tags to be peeled
| |
| getRefPrefixes | back to summary |
|---|---|
| public List Get ref prefixes | |
| getServerOptions | back to summary |
|---|---|
| public List Get application-specific options provided by the client using --server-option. It returns just the content, without the "server-option=" prefix. E.g. a request with server-option=A and server-option=B lines returns the list [A, B]. | |
| getSymrefs | back to summary |
|---|---|
| public boolean getSymrefs() Whether the client requests symbolic references
| |
LsRefsV2Request.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private boolean | |
| private List | |
| private final List | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public LsRefsV2Request. | Returns: this builderthe client-supplied server-option capability, without
leading "server-option=". value)Records an application-specific option supplied in a server-option
line, for later retrieval with
|
| public LsRefsV2Request | |
| public LsRefsV2Request. | |
| public LsRefsV2Request. | Returns: this builderthe client-supplied session-id capability, without leading
"session-id=" value)Value of a session-id line received after the command and before the arguments. |
| public LsRefsV2Request. | |
| public LsRefsV2Request. | |
| public LsRefsV2Request. |
| agent | back to summary |
|---|---|
| private String agent | |
| clientSID | back to summary |
|---|---|
| private String clientSID | |
| peel | back to summary |
|---|---|
| private boolean peel | |
| refPrefixes | back to summary |
|---|---|
| private List<String> refPrefixes | |
| serverOptions | back to summary |
|---|---|
| private final List<String> serverOptions | |
| symrefs | back to summary |
|---|---|
| private boolean symrefs | |
| Builder | back to summary |
|---|---|
| private Builder() | |
| addServerOption | back to summary |
|---|---|
| public LsRefsV2Request. Records an application-specific option supplied in a server-option
line, for later retrieval with
| |
| build | back to summary |
|---|---|
| public LsRefsV2Request build() Builds the request
| |
| setAgent | back to summary |
|---|---|
| public LsRefsV2Request. 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".
| |
| setClientSID | back to summary |
|---|---|
| public LsRefsV2Request. 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".
| |
| setPeel | back to summary |
|---|---|
| public LsRefsV2Request. Set whether to peel tags
| |
| setRefPrefixes | back to summary |
|---|---|
| public LsRefsV2Request. Set ref prefixes
| |
| setSymrefs | back to summary |
|---|---|
| public LsRefsV2Request. Set symrefs
| |