public static enum HttpConfig.HttpRedirectMode extends Enum<HttpConfig.HttpRedirectMode> implements Config.ConfigEnum
Enum Constant and Description |
---|
FALSE
Never follow redirects.
|
INITIAL
Only follow redirects on the initial GET request.
|
TRUE
Always follow redirects (up to the http.maxRedirects limit).
|
Modifier and Type | Method and Description |
---|---|
boolean |
matchConfigValue(String s)
Checks if the given string matches with enum value.
|
String |
toConfigValue()
Converts enumeration value into a string to be save in config.
|
static HttpConfig.HttpRedirectMode |
valueOf(String name)
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.
|
public static final HttpConfig.HttpRedirectMode TRUE
public static final HttpConfig.HttpRedirectMode INITIAL
public static final HttpConfig.HttpRedirectMode FALSE
public static HttpConfig.HttpRedirectMode[] values()
for (HttpConfig.HttpRedirectMode c : HttpConfig.HttpRedirectMode.values()) System.out.println(c);
public static HttpConfig.HttpRedirectMode 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 nullpublic String toConfigValue()
Config.ConfigEnum
toConfigValue
in interface Config.ConfigEnum
public boolean matchConfigValue(String s)
Config.ConfigEnum
matchConfigValue
in interface Config.ConfigEnum
s
- the string to matchCopyright © 2018 Eclipse JGit Project. All rights reserved.