public class Socks5CommandStatus extends java.lang.Object implements java.lang.Comparable<Socks5CommandStatus>
Socks5CommandResponse
.Modifier and Type | Field and Description |
---|---|
static Socks5CommandStatus |
ADDRESS_UNSUPPORTED |
private byte |
byteValue |
static Socks5CommandStatus |
COMMAND_UNSUPPORTED |
static Socks5CommandStatus |
CONNECTION_REFUSED |
static Socks5CommandStatus |
FAILURE |
static Socks5CommandStatus |
FORBIDDEN |
static Socks5CommandStatus |
HOST_UNREACHABLE |
private java.lang.String |
name |
static Socks5CommandStatus |
NETWORK_UNREACHABLE |
static Socks5CommandStatus |
SUCCESS |
private java.lang.String |
text |
static Socks5CommandStatus |
TTL_EXPIRED |
Constructor and Description |
---|
Socks5CommandStatus(int byteValue) |
Socks5CommandStatus(int byteValue,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
byte |
byteValue() |
int |
compareTo(Socks5CommandStatus o) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isSuccess() |
java.lang.String |
toString() |
static Socks5CommandStatus |
valueOf(byte b) |
public static final Socks5CommandStatus SUCCESS
public static final Socks5CommandStatus FAILURE
public static final Socks5CommandStatus FORBIDDEN
public static final Socks5CommandStatus NETWORK_UNREACHABLE
public static final Socks5CommandStatus HOST_UNREACHABLE
public static final Socks5CommandStatus CONNECTION_REFUSED
public static final Socks5CommandStatus TTL_EXPIRED
public static final Socks5CommandStatus COMMAND_UNSUPPORTED
public static final Socks5CommandStatus ADDRESS_UNSUPPORTED
private final byte byteValue
private final java.lang.String name
private java.lang.String text
public Socks5CommandStatus(int byteValue)
public Socks5CommandStatus(int byteValue, java.lang.String name)
public static Socks5CommandStatus valueOf(byte b)
public byte byteValue()
public boolean isSuccess()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(Socks5CommandStatus o)
compareTo
in interface java.lang.Comparable<Socks5CommandStatus>
public java.lang.String toString()
toString
in class java.lang.Object