Package io.netty.handler.codec.spdy
Class SpdySessionStatus
- java.lang.Object
-
- io.netty.handler.codec.spdy.SpdySessionStatus
-
- All Implemented Interfaces:
java.lang.Comparable<SpdySessionStatus>
public class SpdySessionStatus extends java.lang.Object implements java.lang.Comparable<SpdySessionStatus>
The SPDY session status code and its description.
-
-
Field Summary
Fields Modifier and Type Field Description static SpdySessionStatus
INTERNAL_ERROR
2 Internal Errorstatic SpdySessionStatus
OK
0 OKstatic SpdySessionStatus
PROTOCOL_ERROR
1 Protocol Error
-
Constructor Summary
Constructors Constructor Description SpdySessionStatus(int code, java.lang.String statusPhrase)
Creates a new instance with the specifiedcode
and itsstatusPhrase
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
code()
Returns the code of this status.int
compareTo(SpdySessionStatus o)
boolean
equals(java.lang.Object o)
int
hashCode()
java.lang.String
statusPhrase()
Returns the status phrase of this status.java.lang.String
toString()
static SpdySessionStatus
valueOf(int code)
Returns theSpdySessionStatus
represented by the specified code.
-
-
-
Field Detail
-
OK
public static final SpdySessionStatus OK
0 OK
-
PROTOCOL_ERROR
public static final SpdySessionStatus PROTOCOL_ERROR
1 Protocol Error
-
INTERNAL_ERROR
public static final SpdySessionStatus INTERNAL_ERROR
2 Internal Error
-
-
Method Detail
-
valueOf
public static SpdySessionStatus valueOf(int code)
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
public java.lang.String statusPhrase()
Returns the status phrase of this status.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(SpdySessionStatus o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<SpdySessionStatus>
-
-