Class StatusLine


  • public class StatusLine
    extends java.lang.Object
    HTTP status line returned from an HTTP server.

    Read included Apache License 2.0: HERE

    All NeoVisionaries.WebSockets.* Code Obtained From: GitHub 'NV'  (Takahiko Kawasaki)  Public Archive.
    Since:
    1.19


    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getHttpVersion()
      Get the HTTP version.
      String getReasonPhrase()
      Get the reason phrase.
      int getStatusCode()
      Get the status code.
      String toString()
      Get the string representation of this instance, which is equal to the raw status line.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getHttpVersion

        🡇    
        public java.lang.String getHttpVersion()
        Get the HTTP version.
        Returns:
        The HTTP version. For example, "HTTP/1.1".
        Code:
        Exact Method Body:
         return mHttpVersion;
        
      • getStatusCode

        🡅  🡇    
        public int getStatusCode()
        Get the status code.
        Returns:
        The status code. For example, 404.
        Code:
        Exact Method Body:
         return mStatusCode;
        
      • getReasonPhrase

        🡅  🡇    
        public java.lang.String getReasonPhrase()
        Get the reason phrase.
        Returns:
        The reason phrase. For example, "Not Found".
        Code:
        Exact Method Body:
         return mReasonPhrase;
        
      • toString

        🡅    
        public java.lang.String toString()
        Get the string representation of this instance, which is equal to the raw status line.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The raw status line. For example, "HTTP/1.1 404 Not Found".
        Code:
        Exact Method Body:
         return mString;