public enum SocksCmdStatus extends java.lang.Enum<SocksCmdStatus>
Enum Constant and Description |
---|
ADDRESS_NOT_SUPPORTED |
COMMAND_NOT_SUPPORTED |
FAILURE |
FORBIDDEN |
HOST_UNREACHABLE |
NETWORK_UNREACHABLE |
REFUSED |
SUCCESS |
TTL_EXPIRED |
UNASSIGNED |
Modifier and Type | Method and Description |
---|---|
byte |
byteValue() |
static SocksCmdStatus |
fromByte(byte b)
已过时。
改为使用
valueOf(byte) 。
|
static SocksCmdStatus |
valueOf(byte b) |
static SocksCmdStatus |
valueOf(java.lang.String name)
以指定名称返回此类型的枚举常量。
|
static SocksCmdStatus[] |
values()
按照声明的顺序返回包含此枚举类型常量的数组。
|
public static final SocksCmdStatus SUCCESS
public static final SocksCmdStatus FAILURE
public static final SocksCmdStatus FORBIDDEN
public static final SocksCmdStatus NETWORK_UNREACHABLE
public static final SocksCmdStatus HOST_UNREACHABLE
public static final SocksCmdStatus REFUSED
public static final SocksCmdStatus TTL_EXPIRED
public static final SocksCmdStatus COMMAND_NOT_SUPPORTED
public static final SocksCmdStatus ADDRESS_NOT_SUPPORTED
public static final SocksCmdStatus UNASSIGNED
public static SocksCmdStatus[] values()
for (SocksCmdStatus c : SocksCmdStatus.values())
System.out.println(c);
public static SocksCmdStatus valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- 如果此枚举类型没有指定名称的常量
java.lang.NullPointerException
- 如果参数为null
@Deprecated public static SocksCmdStatus fromByte(byte b)
valueOf(byte)
instead.
public static SocksCmdStatus valueOf(byte b)
public byte byteValue()
Copyright © 2008–2018 The Netty Project. All rights reserved.