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
FieldsModifier and TypeFieldDescriptionprivate final intstatic final SpdySessionStatus2 Internal Errorstatic final SpdySessionStatus0 OKstatic final SpdySessionStatus1 Protocol Errorprivate final java.lang.String -
Constructor Summary
ConstructorsConstructorDescriptionSpdySessionStatus(int code, java.lang.String statusPhrase) Creates a new instance with the specifiedcodeand itsstatusPhrase. -
Method Summary
Modifier and TypeMethodDescriptionintcode()Returns the code of this status.intbooleanequals(java.lang.Object o) inthashCode()java.lang.StringReturns the status phrase of this status.java.lang.StringtoString()static SpdySessionStatusvalueOf(int code) Returns theSpdySessionStatusrepresented by the specified code.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
OK
0 OK -
PROTOCOL_ERROR
1 Protocol Error -
INTERNAL_ERROR
2 Internal Error -
code
private final int code -
statusPhrase
private final java.lang.String statusPhrase
-
-
Constructor Details
-
SpdySessionStatus
public SpdySessionStatus(int code, java.lang.String statusPhrase) 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. -
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
- Specified by:
compareToin interfacejava.lang.Comparable<SpdySessionStatus>
-