Package io.netty.handler.codec.spdy
Class SpdySessionStatus
java.lang.Object
io.netty.handler.codec.spdy.SpdySessionStatus
- All Implemented Interfaces:
Comparable<SpdySessionStatus>
The SPDY session status code and its description.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
static final SpdySessionStatus
2 Internal Errorstatic final SpdySessionStatus
0 OKstatic final SpdySessionStatus
1 Protocol Errorprivate final String
-
Constructor Summary
ConstructorsConstructorDescriptionSpdySessionStatus
(int code, String statusPhrase) Creates a new instance with the specifiedcode
and itsstatusPhrase
. -
Method Summary
Modifier and TypeMethodDescriptionint
code()
Returns the code of this status.int
boolean
int
hashCode()
Returns the status phrase of this status.toString()
static SpdySessionStatus
valueOf
(int code) Returns theSpdySessionStatus
represented by the specified code.
-
Field Details
-
OK
0 OK -
PROTOCOL_ERROR
1 Protocol Error -
INTERNAL_ERROR
2 Internal Error -
code
private final int code -
statusPhrase
-
-
Constructor Details
-
SpdySessionStatus
Creates a new instance with the specifiedcode
and itsstatusPhrase
.
-
-
Method Details
-
valueOf
Returns theSpdySessionStatus
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. -
code
public int code()Returns the code of this status. -
statusPhrase
Returns the status phrase of this status. -
hashCode
public int hashCode() -
equals
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SpdySessionStatus>
-