public static enum SocksMessage.CmdStatus extends Enum<SocksMessage.CmdStatus>
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 |
---|---|
static SocksMessage.CmdStatus |
fromByte(byte b) |
byte |
getByteValue() |
static SocksMessage.CmdStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SocksMessage.CmdStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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(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 static SocksMessage.CmdStatus fromByte(byte b)
public byte getByteValue()
Copyright © 2008-2014 The Netty Project. All Rights Reserved.