public class SpdyStreamStatus extends Object implements Comparable<SpdyStreamStatus>
Modifier and Type | Field and Description |
---|---|
static SpdyStreamStatus |
CANCEL
5 Cancel
|
static SpdyStreamStatus |
FLOW_CONTROL_ERROR
7 Flow Control Error
|
static SpdyStreamStatus |
FRAME_TOO_LARGE
11 Frame Too Large
|
static SpdyStreamStatus |
INTERNAL_ERROR
6 Internal Error
|
static SpdyStreamStatus |
INVALID_CREDENTIALS
10 Invalid Credentials
|
static SpdyStreamStatus |
INVALID_STREAM
2 Invalid Stream
|
static SpdyStreamStatus |
PROTOCOL_ERROR
1 Protocol Error
|
static SpdyStreamStatus |
REFUSED_STREAM
3 Refused Stream
|
static SpdyStreamStatus |
STREAM_ALREADY_CLOSED
9 Stream Already Closed
|
static SpdyStreamStatus |
STREAM_IN_USE
8 Stream In Use
|
static SpdyStreamStatus |
UNSUPPORTED_VERSION
4 Unsupported Version
|
Constructor and Description |
---|
SpdyStreamStatus(int code,
String statusPhrase)
Creates a new instance with the specified
code and its
statusPhrase . |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SpdyStreamStatus 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 SpdyStreamStatus |
valueOf(int code)
Returns the
SpdyStreamStatus represented by the specified code. |
public static final SpdyStreamStatus PROTOCOL_ERROR
public static final SpdyStreamStatus INVALID_STREAM
public static final SpdyStreamStatus REFUSED_STREAM
public static final SpdyStreamStatus UNSUPPORTED_VERSION
public static final SpdyStreamStatus CANCEL
public static final SpdyStreamStatus INTERNAL_ERROR
public static final SpdyStreamStatus FLOW_CONTROL_ERROR
public static final SpdyStreamStatus STREAM_IN_USE
public static final SpdyStreamStatus STREAM_ALREADY_CLOSED
public static final SpdyStreamStatus INVALID_CREDENTIALS
public static final SpdyStreamStatus FRAME_TOO_LARGE
public SpdyStreamStatus(int code, String statusPhrase)
code
and its
statusPhrase
.public static SpdyStreamStatus valueOf(int code)
SpdyStreamStatus
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(SpdyStreamStatus o)
compareTo
in interface Comparable<SpdyStreamStatus>
Copyright © 2008-2016 The Netty Project. All Rights Reserved.