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 newStatusLinewith the given response code and reason string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetReason()Retrieves the HTTP reason phrase.intgetResultCode()Retrieves the HTTP response code.StringgetVersion()Retrieves the version string.
-
-
-
Constructor Detail
-
StatusLine
public StatusLine(String version, int resultCode, String reason)
Create a newStatusLinewith 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
-
-