Package org.eclipse.jgit.transport
Enum HttpConfig.HttpRedirectMode
- All Implemented Interfaces:
Serializable
,Comparable<HttpConfig.HttpRedirectMode>
,Config.ConfigEnum
- Enclosing class:
HttpConfig
public static enum HttpConfig.HttpRedirectMode
extends Enum<HttpConfig.HttpRedirectMode>
implements Config.ConfigEnum
Config values for http.followRedirect.
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if the given string matches with enum value.Converts enumeration value into a string to be save in config.static HttpConfig.HttpRedirectMode
Returns the enum constant of this type with the specified name.static HttpConfig.HttpRedirectMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TRUE
Always follow redirects (up to the http.maxRedirects limit). -
INITIAL
Only follow redirects on the initial GET request. This is the default. -
FALSE
Never follow redirects.
-
-
Field Details
-
configValue
-
-
Constructor Details
-
HttpRedirectMode
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
toConfigValue
Description copied from interface:Config.ConfigEnum
Converts enumeration value into a string to be save in config.- Specified by:
toConfigValue
in interfaceConfig.ConfigEnum
- Returns:
- the enum value as config string
-
matchConfigValue
Description copied from interface:Config.ConfigEnum
Checks if the given string matches with enum value.- Specified by:
matchConfigValue
in interfaceConfig.ConfigEnum
- Parameters:
s
- the string to match- Returns:
- true if the given string matches enum value, false otherwise
-