Class StatusLine


  • public final class StatusLine
    extends Object
    An HTTP response status line like "HTTP/1.1 200 OK".
    • Field Detail

      • HTTP_TEMP_REDIRECT

        public static final int HTTP_TEMP_REDIRECT
        Numeric status code, 307: Temporary Redirect.
        See Also:
        Constant Field Values
      • protocol

        public final Protocol protocol
      • code

        public final int code
      • message

        public final String message
    • Constructor Detail

      • StatusLine

        public StatusLine​(Protocol protocol,
                          int code,
                          String message)
    • Method Detail

      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.