public class SpdySessionStatus extends java.lang.Object implements java.lang.Comparable<SpdySessionStatus>
| Modifier and Type | Field and Description |
|---|---|
private int |
code |
static SpdySessionStatus |
INTERNAL_ERROR
2 Internal Error
|
static SpdySessionStatus |
OK
0 OK
|
static SpdySessionStatus |
PROTOCOL_ERROR
1 Protocol Error
|
private java.lang.String |
statusPhrase |
| Constructor and Description |
|---|
SpdySessionStatus(int code,
java.lang.String statusPhrase)
Creates a new instance with the specified
code and its
statusPhrase. |
| Modifier and Type | Method and Description |
|---|---|
int |
code()
Returns the code of this status.
|
int |
compareTo(SpdySessionStatus o) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
statusPhrase()
Returns the status phrase of this status.
|
java.lang.String |
toString() |
static SpdySessionStatus |
valueOf(int code)
Returns the
SpdySessionStatus represented by the specified code. |
public static final SpdySessionStatus OK
public static final SpdySessionStatus PROTOCOL_ERROR
public static final SpdySessionStatus INTERNAL_ERROR
private final int code
private final java.lang.String statusPhrase
public SpdySessionStatus(int code,
java.lang.String statusPhrase)
code and its
statusPhrase.public static SpdySessionStatus valueOf(int code)
SpdySessionStatus represented by the specified code.
If the specified code is a defined SPDY status code, a cached instance
will be returned. Otherwise, a new instance will be returned.public int code()
public java.lang.String statusPhrase()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(SpdySessionStatus o)
compareTo in interface java.lang.Comparable<SpdySessionStatus>