public enum Socks5Command extends Enum<Socks5Command>
enum
that defines types of commands for the SOCKS5 proxy handler.Enum Constant and Description |
---|
BIND
The BIND command
|
CONNECT
The CONNECT command
|
UDP_ASSOCIATE
The UDP_ASSOCIATE command
|
Modifier and Type | Method and Description |
---|---|
static Socks5Command |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Socks5Command[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Socks5Command CONNECT
public static final Socks5Command BIND
public static final Socks5Command UDP_ASSOCIATE
public static Socks5Command[] values()
for (Socks5Command c : Socks5Command.values()) System.out.println(c);
public static Socks5Command 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 nullCopyright © 2017–2022 SNF4J.ORG. All rights reserved.