public class Socks4CommandStatus extends java.lang.Object implements java.lang.Comparable<Socks4CommandStatus>
Socks4CommandResponse
.Modifier and Type | Field and Description |
---|---|
private byte |
byteValue |
static Socks4CommandStatus |
IDENTD_AUTH_FAILURE |
static Socks4CommandStatus |
IDENTD_UNREACHABLE |
private java.lang.String |
name |
static Socks4CommandStatus |
REJECTED_OR_FAILED |
static Socks4CommandStatus |
SUCCESS |
private java.lang.String |
text |
Constructor and Description |
---|
Socks4CommandStatus(int byteValue) |
Socks4CommandStatus(int byteValue,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
byte |
byteValue() |
int |
compareTo(Socks4CommandStatus o) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isSuccess() |
java.lang.String |
toString() |
static Socks4CommandStatus |
valueOf(byte b) |
public static final Socks4CommandStatus SUCCESS
public static final Socks4CommandStatus REJECTED_OR_FAILED
public static final Socks4CommandStatus IDENTD_UNREACHABLE
public static final Socks4CommandStatus IDENTD_AUTH_FAILURE
private final byte byteValue
private final java.lang.String name
private java.lang.String text
public Socks4CommandStatus(int byteValue)
public Socks4CommandStatus(int byteValue, java.lang.String name)
public static Socks4CommandStatus 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(Socks4CommandStatus o)
compareTo
in interface java.lang.Comparable<Socks4CommandStatus>
public java.lang.String toString()
toString
in class java.lang.Object