Class StatusLine
- java.lang.Object
-
- org.eclipse.jgit.internal.transport.sshd.proxy.StatusLine
-
public class StatusLine extends java.lang.ObjectA very simple representation of a HTTP status line.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringreasonprivate intresultCodeprivate java.lang.Stringversion
-
Constructor Summary
Constructors Constructor Description StatusLine(java.lang.String version, int resultCode, java.lang.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 java.lang.StringgetReason()Retrieves the HTTP reason phrase.intgetResultCode()Retrieves the HTTP response code.java.lang.StringgetVersion()Retrieves the version string.
-
-
-
Constructor Detail
-
StatusLine
public StatusLine(java.lang.String version, int resultCode, java.lang.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
-
-
Method Detail
-
getVersion
public java.lang.String getVersion()
Retrieves the version string.- Returns:
- the version string
-
getResultCode
public int getResultCode()
Retrieves the HTTP response code.- Returns:
- the code
-
getReason
public java.lang.String getReason()
Retrieves the HTTP reason phrase.- Returns:
- the reason
-
-