Enum SocksMessage.AddressType
- java.lang.Object
-
- java.lang.Enum<SocksMessage.AddressType>
-
- org.jboss.netty.handler.codec.socks.SocksMessage.AddressType
-
- All Implemented Interfaces:
Serializable
,Comparable<SocksMessage.AddressType>
- Enclosing class:
- SocksMessage
public static enum SocksMessage.AddressType extends Enum<SocksMessage.AddressType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SocksMessage.AddressType
fromByte(byte b)
byte
getByteValue()
static SocksMessage.AddressType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SocksMessage.AddressType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IPv4
public static final SocksMessage.AddressType IPv4
-
DOMAIN
public static final SocksMessage.AddressType DOMAIN
-
IPv6
public static final SocksMessage.AddressType IPv6
-
UNKNOWN
public static final SocksMessage.AddressType UNKNOWN
-
-
Method Detail
-
values
public static SocksMessage.AddressType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SocksMessage.AddressType c : SocksMessage.AddressType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SocksMessage.AddressType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromByte
public static SocksMessage.AddressType fromByte(byte b)
-
getByteValue
public byte getByteValue()
-
-