Package NeoVisionaries.WebSockets
Class StatusLine
- java.lang.Object
-
- NeoVisionaries.WebSockets.StatusLine
-
public class StatusLine extends java.lang.Object
HTTP status line returned from an HTTP server.
Read included Apache License 2.0:HERE
AllNeoVisionaries.WebSockets.*
Code Obtained From:GitHub 'NV' (Takahiko Kawasaki)
Public Archive.- Since:
- 1.19
Hi-Lited Source-Code:- View Here: NeoVisionaries/WebSockets/StatusLine.java
- Open New Browser-Tab: NeoVisionaries/WebSockets/StatusLine.java
File Size: 3,000 Bytes Line Count: 135 '\n' Characters Found
-
-
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.
-
-
-
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 classjava.lang.Object
- Returns:
- The raw status line. For example,
"HTTP/1.1 404 Not Found"
. - Code:
- Exact Method Body:
return mString;
-
-