Package org.eclipse.jgit.transport
Enum Class UploadPack.RequestPolicy
- All Implemented Interfaces:
Serializable
,Comparable<UploadPack.RequestPolicy>
,Constable
- Enclosing class:
- UploadPack
Policy the server uses to validate client requests
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClient may only ask for objects the server advertised a reference for.Client may ask for any SHA-1 in the repository.Client may ask for any commit reachable from a reference advertised by the server.Client may ask for any commit reachable from any reference, even if that reference wasn't advertised.Client may ask for objects that are the tip of any reference, even if not advertised. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UploadPack.RequestPolicy
Returns the enum constant of this class with the specified name.static UploadPack.RequestPolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADVERTISED
Client may only ask for objects the server advertised a reference for. -
REACHABLE_COMMIT
Client may ask for any commit reachable from a reference advertised by the server. -
TIP
Client may ask for objects that are the tip of any reference, even if not advertised.This may happen, for example, when a custom
RefFilter
is set.- Since:
- 3.1
-
REACHABLE_COMMIT_TIP
Client may ask for any commit reachable from any reference, even if that reference wasn't advertised.- Since:
- 3.1
-
ANY
Client may ask for any SHA-1 in the repository.
-
-
Constructor Details
-
RequestPolicy
private RequestPolicy()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-