Class StatusLine
- java.lang.Object
-
- org.eclipse.jgit.internal.transport.sshd.proxy.StatusLine
-
public class StatusLine extends Object
A very simple representation of a HTTP status line.
-
-
Constructor Summary
Constructors Constructor Description StatusLine(String version, int resultCode, String reason)
Create a newStatusLine
with the given response code and reason string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getReason()
Retrieves the HTTP reason phrase.int
getResultCode()
Retrieves the HTTP response code.String
getVersion()
Retrieves the version string.
-
-
-
Constructor Detail
-
StatusLine
public StatusLine(String version, int resultCode, String reason)
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
-
-