Class SpdySessionStatus
java.lang.Object
org.jboss.netty.handler.codec.spdy.SpdySessionStatus
- All Implemented Interfaces:
Comparable<SpdySessionStatus>
The SPDY session status code and its description.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intstatic final SpdySessionStatus2 Internal Errorstatic final SpdySessionStatus0 OKstatic final SpdySessionStatus1 Protocol Errorprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionSpdySessionStatus(int code, String statusPhrase) Creates a new instance with the specifiedcodeand itsstatusPhrase. -
Method Summary
Modifier and TypeMethodDescriptionintbooleanintgetCode()Returns the code of this status.Returns the status phrase of this status.inthashCode()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 -
code
private final int code -
statusPhrase
-
-
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. -
getCode
public int getCode()Returns the code of this status. -
getStatusPhrase
Returns the status phrase of this status. -
hashCode
-
equals
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<SpdySessionStatus>
-