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 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 TypeMethodDescriptionbyte
Returns thebyte
value associated with thisReplyCode
.static ReplyCode
Returns the enum constant of this class with the specified name.static ReplyCode
valueOfByte
(byte b) Returns the enum constant associated with the providedbyte
value.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 providedbyte
value. AnIllegalArgumentException
is thrown if there is no enum constant associated with the providedbyte
value.- Parameters:
b
- the providedbyte
value- Returns:
- the enum constant associated with the provided
byte
value
-
byteValue
public byte byteValue()Returns thebyte
value associated with thisReplyCode
.- Returns:
- the
byte
value associated with thisReplyCode
-