public static enum SocksMessage.CmdStatus extends java.lang.Enum<SocksMessage.CmdStatus>
枚举常量和说明 |
---|
ADDRESS_NOT_SUPPORTED |
COMMAND_NOT_SUPPORTED |
FAILURE |
FORBIDDEN |
HOST_UNREACHABLE |
NETWORK_UNREACHABLE |
REFUSED |
SUCCESS |
TTL_EXPIRED |
UNASSIGNED |
限定符和类型 | 方法和说明 |
---|---|
static SocksMessage.CmdStatus |
fromByte(byte b) |
byte |
getByteValue() |
static SocksMessage.CmdStatus |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static SocksMessage.CmdStatus[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final SocksMessage.CmdStatus SUCCESS
public static final SocksMessage.CmdStatus FAILURE
public static final SocksMessage.CmdStatus FORBIDDEN
public static final SocksMessage.CmdStatus NETWORK_UNREACHABLE
public static final SocksMessage.CmdStatus HOST_UNREACHABLE
public static final SocksMessage.CmdStatus REFUSED
public static final SocksMessage.CmdStatus TTL_EXPIRED
public static final SocksMessage.CmdStatus COMMAND_NOT_SUPPORTED
public static final SocksMessage.CmdStatus ADDRESS_NOT_SUPPORTED
public static final SocksMessage.CmdStatus UNASSIGNED
public static SocksMessage.CmdStatus[] values()
for (SocksMessage.CmdStatus c : SocksMessage.CmdStatus.values()) System.out.println(c);
public static SocksMessage.CmdStatus valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public static SocksMessage.CmdStatus fromByte(byte b)
public byte getByteValue()