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