public class StatusLine extends Object
Constructor and Description |
---|
StatusLine(String version,
int resultCode,
String reason)
Create a new
StatusLine with the given response code and reason
string. |
Modifier and Type | Method and Description |
---|---|
String |
getReason()
Retrieves the HTTP reason phrase.
|
int |
getResultCode()
Retrieves the HTTP response code.
|
String |
getVersion()
Retrieves the version string.
|
public StatusLine(String version, int resultCode, String reason)
StatusLine
with the given response code and reason
string.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 codeCopyright © 2019 Eclipse JGit Project. All rights reserved.