public static enum HttpCredential.Scheme extends Enum<HttpCredential.Scheme>
Modifier and Type | Method and Description |
---|---|
static HttpCredential.Scheme |
from(String scheme) |
String |
toString() |
static HttpCredential.Scheme |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpCredential.Scheme[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpCredential.Scheme NONE
public static final HttpCredential.Scheme BASIC
public static final HttpCredential.Scheme BEARER
public static HttpCredential.Scheme[] values()
for (HttpCredential.Scheme c : HttpCredential.Scheme.values()) System.out.println(c);
public static HttpCredential.Scheme 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 toString()
toString
in class Enum<HttpCredential.Scheme>
public static HttpCredential.Scheme from(String scheme)