Class 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.
    • Constructor Detail

      • SpdySessionStatus

        public SpdySessionStatus​(int code,
                                 java.lang.String statusPhrase)
        Creates a new instance with the specified code and its statusPhrase.
    • Method Detail

      • valueOf

        public static SpdySessionStatus valueOf​(int code)
        Returns the SpdySessionStatus 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object