public static enum UploadPack.RequestPolicy extends Enum<UploadPack.RequestPolicy>
Enum Constant and Description |
---|
ADVERTISED
Client may only ask for objects the server advertised a reference for.
|
ANY
Client may ask for any SHA-1 in the repository.
|
REACHABLE_COMMIT
Client may ask for any commit reachable from a reference advertised by
the server.
|
REACHABLE_COMMIT_TIP
Client may ask for any commit reachable from any reference, even if that
reference wasn't advertised.
|
TIP
Client may ask for objects that are the tip of any reference, even if not
advertised.
|
Modifier and Type | Method and Description |
---|---|
static UploadPack.RequestPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UploadPack.RequestPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UploadPack.RequestPolicy ADVERTISED
public static final UploadPack.RequestPolicy REACHABLE_COMMIT
public static final UploadPack.RequestPolicy TIP
This may happen, for example, when a custom RefFilter
is set.
public static final UploadPack.RequestPolicy REACHABLE_COMMIT_TIP
public static final UploadPack.RequestPolicy ANY
public static UploadPack.RequestPolicy[] values()
for (UploadPack.RequestPolicy c : UploadPack.RequestPolicy.values()) System.out.println(c);
public static UploadPack.RequestPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2019 Eclipse JGit Project. All rights reserved.