Class StatusLine
java.lang.Object
org.eclipse.jgit.internal.transport.sshd.proxy.StatusLine
A very simple representation of a HTTP status line.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStatusLine
(String version, int resultCode, String reason) Create a newStatusLine
with the given response code and reason string. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the HTTP reason phrase.int
Retrieves the HTTP response code.Retrieves the version string.
-
Field Details
-
version
-
resultCode
private final int resultCode -
reason
-
-
Constructor Details
-
StatusLine
Create a newStatusLine
with the given response code and reason string.- Parameters:
version
- the version string (normally "HTTP/1.1" or "HTTP/1.0")resultCode
- the HTTP response code (200, 401, etc.)reason
- the reason phrase for the code
-
-
Method Details
-
getVersion
Retrieves the version string.- Returns:
- the version string
-
getResultCode
public int getResultCode()Retrieves the HTTP response code.- Returns:
- the code
-
getReason
Retrieves the HTTP reason phrase.- Returns:
- the reason
-