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.
|
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 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 © 2013. All Rights Reserved.