Class BasicStatusLine

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, StatusLine

    @Immutable
    public class BasicStatusLine
    extends java.lang.Object
    implements StatusLine, java.lang.Cloneable, java.io.Serializable
    Basic implementation of StatusLine
    Since:
    4.0
    See Also:
    Serialized Form
    • Constructor Detail

      • BasicStatusLine

        public BasicStatusLine​(ProtocolVersion version,
                               int statusCode,
                               java.lang.String reasonPhrase)
        Creates a new status line with the given version, status, and reason.
        Parameters:
        version - the protocol version of the response
        statusCode - the status code of the response
        reasonPhrase - the reason phrase to the status code, or null
    • Method Detail

      • toString

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

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException