public class SpdySessionStatus extends Object implements Comparable<SpdySessionStatus>
Modifier and Type | Field and Description |
---|---|
static SpdySessionStatus |
INTERNAL_ERROR
2 Internal Error
|
static SpdySessionStatus |
OK
0 OK
|
static SpdySessionStatus |
PROTOCOL_ERROR
1 Protocol Error
|
Constructor and Description |
---|
SpdySessionStatus(int code,
String statusPhrase)
Creates a new instance with the specified
code and its
statusPhrase . |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SpdySessionStatus o) |
boolean |
equals(Object o) |
int |
getCode()
Returns the code of this status.
|
String |
getStatusPhrase()
Returns the status phrase of this status.
|
int |
hashCode() |
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, 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 getCode()
public String getStatusPhrase()
public int compareTo(SpdySessionStatus o)
compareTo
in interface Comparable<SpdySessionStatus>
Copyright © 2008-2014 The Netty Project. All Rights Reserved.