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 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
boolean
int
getCode()
Returns the code of this status.Returns the status phrase of this status.int
hashCode()
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. -
getCode
public int getCode()Returns the code of this status. -
getStatusPhrase
Returns the status phrase of this status. -
hashCode
public int hashCode() -
equals
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SpdySessionStatus>
-