public enum HttpRedirectStrategy extends Enum<HttpRedirectStrategy>
| Enum Constant and Description |
|---|
FOLLOW |
NO_REDIRECTS |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.client.RedirectStrategy |
value() |
static HttpRedirectStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpRedirectStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpRedirectStrategy NO_REDIRECTS
public static final HttpRedirectStrategy FOLLOW
public static HttpRedirectStrategy[] values()
for (HttpRedirectStrategy c : HttpRedirectStrategy.values()) System.out.println(c);
public static HttpRedirectStrategy 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 org.apache.http.client.RedirectStrategy value()