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 SpdySessionStatusINTERNAL_ERROR2 Internal Errorstatic SpdySessionStatusOK0 OKstatic SpdySessionStatusPROTOCOL_ERROR1 Protocol Error
-
Constructor Summary
Constructors Constructor Description SpdySessionStatus(int code, java.lang.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(java.lang.Object o)inthashCode()java.lang.StringstatusPhrase()Returns the status phrase of this status.java.lang.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
-
-
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 java.lang.String statusPhrase()
Returns the status phrase of this status.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(SpdySessionStatus o)
- Specified by:
compareToin interfacejava.lang.Comparable<SpdySessionStatus>
-
-