Package io.netty.handler.codec.spdy
Class SpdySessionStatus
- java.lang.Object
-
- io.netty.handler.codec.spdy.SpdySessionStatus
-
- All Implemented Interfaces:
Comparable<SpdySessionStatus>
public class SpdySessionStatus extends Object implements Comparable<SpdySessionStatus>
The SPDY session status code and its description.
-
-
Field Summary
Fields Modifier and Type Field Description static SpdySessionStatusINTERNAL_ERROR2 Internal Errorstatic SpdySessionStatusOK0 OKstatic SpdySessionStatusPROTOCOL_ERROR1 Protocol Error
-
Constructor Summary
Constructors Constructor Description SpdySessionStatus(int code, String statusPhrase)Creates a new instance with the specifiedcodeand itsstatusPhrase.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcode()Returns the code of this status.intcompareTo(SpdySessionStatus o)booleanequals(Object o)inthashCode()StringstatusPhrase()Returns the status phrase of this status.StringtoString()static SpdySessionStatusvalueOf(int code)Returns theSpdySessionStatusrepresented 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
-
-
Constructor Detail
-
SpdySessionStatus
public SpdySessionStatus(int code, String statusPhrase)Creates a new instance with the specifiedcodeand itsstatusPhrase.
-
-
Method Detail
-
valueOf
public static SpdySessionStatus valueOf(int code)
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
public String statusPhrase()
Returns the status phrase of this status.
-
compareTo
public int compareTo(SpdySessionStatus o)
- Specified by:
compareToin interfaceComparable<SpdySessionStatus>
-
-