public class SpdySessionStatus extends java.lang.Object implements java.lang.Comparable<SpdySessionStatus>
限定符和类型 | 字段和说明 |
---|---|
static SpdySessionStatus |
INTERNAL_ERROR
2 Internal Error
|
static SpdySessionStatus |
OK
0 OK
|
static SpdySessionStatus |
PROTOCOL_ERROR
1 Protocol Error
|
构造器和说明 |
---|
SpdySessionStatus(int code,
java.lang.String statusPhrase)
Creates a new instance with the specified
code and its
statusPhrase . |
限定符和类型 | 方法和说明 |
---|---|
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
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
在类中 java.lang.Object
public boolean equals(java.lang.Object o)
equals
在类中 java.lang.Object
public java.lang.String toString()
toString
在类中 java.lang.Object
public int compareTo(SpdySessionStatus o)
compareTo
在接口中 java.lang.Comparable<SpdySessionStatus>