public static enum Proxy.Type extends Enum<Proxy.Type>
Enum
class for the proxy type. Possible options are DIRECT
, HTTP
and SOCKS
.Enum Constant and Description |
---|
DIRECT
Direct connection.
|
HTTP
HTTP type proxy.
|
SOCKS
SOCKS type proxy.
|
Modifier and Type | Method and Description |
---|---|
static Proxy.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Proxy.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Proxy.Type DIRECT
public static final Proxy.Type HTTP
public static final Proxy.Type SOCKS
public static Proxy.Type[] values()
for (Proxy.Type c : Proxy.Type.values()) System.out.println(c);
public static Proxy.Type 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 null