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 |
code()
Returns the code of this status.
|
int |
compareTo(SpdySessionStatus o) |
boolean |
equals(Object o) |
int |
hashCode() |
String |
statusPhrase()
Returns the status phrase of this status.
|
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 code()
public String statusPhrase()
public int compareTo(SpdySessionStatus o)
compareTo
in interface Comparable<SpdySessionStatus>
Copyright © 2008–2015 The Netty Project. All rights reserved.