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.
    • Field Detail

      • PROTOCOL_ERROR

        public static final SpdySessionStatus PROTOCOL_ERROR
        1 Protocol Error
      • INTERNAL_ERROR

        public static final SpdySessionStatus INTERNAL_ERROR
        2 Internal Error
      • code

        private final int code
      • statusPhrase

        private final java.lang.String statusPhrase
    • 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.
      • getCode

        public int getCode()
        Returns the code of this status.
      • getStatusPhrase

        public java.lang.String getStatusPhrase()
        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