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 TypeFieldDescriptionstatic final SpdySessionStatus2 Internal Errorstatic final SpdySessionStatus0 OKstatic final SpdySessionStatus1 Protocol Error -
Constructor Summary
ConstructorsConstructorDescriptionSpdySessionStatus(int code, String statusPhrase) Creates a new instance with the specifiedcodeand itsstatusPhrase. -
Method Summary
Modifier and TypeMethodDescriptionintcode()Returns the code of this status.intbooleaninthashCode()Returns the status phrase of this status.toString()static SpdySessionStatusvalueOf(int code) Returns theSpdySessionStatusrepresented by the specified code.
-
Field Details
-
OK
0 OK -
PROTOCOL_ERROR
1 Protocol Error -
INTERNAL_ERROR
2 Internal Error
-
-
Constructor Details
-
SpdySessionStatus
Creates a new instance with the specifiedcodeand itsstatusPhrase.
-
-
Method Details
-
valueOf
Returns theSpdySessionStatusrepresented 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
-
equals
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<SpdySessionStatus>
-