Enum Class ReplyCode
- All Implemented Interfaces:
Serializable,Comparable<ReplyCode>,java.lang.constant.Constable
Type of reply from the SOCKS server.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA reply from the SOCKS server indicating that the address type of the desired destination address of the request to the SOCKS server is not supported.A reply from the SOCKS server indicating that the command of the request to the SOCKS server is not supported.A reply from the SOCKS server indicating that the connection was not allowed by the ruleset.A reply from the SOCKS server indicating that the connection was refused.A reply from the SOCKS server indicating general SOCKS server failure.A reply from the SOCKS server indicating that the host was unreachable.A reply from the SOCKS server indicating that the network was unreachable.A reply from the SOCKS server indicating success.A reply from the SOCKS server indicating that the TTL expired. -
Method Summary
Modifier and TypeMethodDescriptionbyteReturns thebytevalue associated with thisReplyCode.static ReplyCodeReturns the enum constant of this class with the specified name.static ReplyCodevalueOfByte(byte b) Returns the enum constant associated with the providedbytevalue.static ReplyCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCEEDED
A reply from the SOCKS server indicating success. -
GENERAL_SOCKS_SERVER_FAILURE
A reply from the SOCKS server indicating general SOCKS server failure. -
CONNECTION_NOT_ALLOWED_BY_RULESET
A reply from the SOCKS server indicating that the connection was not allowed by the ruleset. -
NETWORK_UNREACHABLE
A reply from the SOCKS server indicating that the network was unreachable. -
HOST_UNREACHABLE
A reply from the SOCKS server indicating that the host was unreachable. -
CONNECTION_REFUSED
A reply from the SOCKS server indicating that the connection was refused. -
TTL_EXPIRED
A reply from the SOCKS server indicating that the TTL expired. -
COMMAND_NOT_SUPPORTED
A reply from the SOCKS server indicating that the command of the request to the SOCKS server is not supported. -
ADDRESS_TYPE_NOT_SUPPORTED
A reply from the SOCKS server indicating that the address type of the desired destination address of the request to the SOCKS server is not supported.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
valueOfByte
Returns the enum constant associated with the providedbytevalue. AnIllegalArgumentExceptionis thrown if there is no enum constant associated with the providedbytevalue.- Parameters:
b- the providedbytevalue- Returns:
- the enum constant associated with the provided
bytevalue
-
byteValue
public byte byteValue()Returns thebytevalue associated with thisReplyCode.- Returns:
- the
bytevalue associated with thisReplyCode
-