public static enum SocksProxy.Version extends Enum<SocksProxy.Version>
Enum Constant and Description |
---|
SOCKS4a
Version 4.
|
SOCKS5
Version 5.
|
Modifier and Type | Method and Description |
---|---|
static SocksProxy.Version |
from(String value)
Gets a
Version from the given value (version number). |
int |
number()
Gets the number of the version.
|
static SocksProxy.Version |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SocksProxy.Version[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SocksProxy.Version SOCKS4a
public static final SocksProxy.Version SOCKS5
Can resolve names and require authentication.
public static SocksProxy.Version[] values()
for (SocksProxy.Version c : SocksProxy.Version.values()) System.out.println(c);
public static SocksProxy.Version 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 int number()
public static SocksProxy.Version from(String value)
Version
from the given value (version number).
Defaults to SOCKS5
when the value
is:
value
- the value to convert