Top Description Fields Constructors Methods
org.eclipse.jgit.internal.transport.sshd.proxy

public Class StatusLine

extends Object
Class Inheritance

A very simple representation of a HTTP status line.

Field Summary

Modifier and TypeField and Description
private final String
private final int
private final String

Constructor Summary

AccessConstructor and Description
public
StatusLine(String
the version string (normally "HTTP/1.1" or "HTTP/1.0")
version
,
int
the HTTP response code (200, 401, etc.)
resultCode
,
String
the reason phrase for the code
reason
)

Create a new StatusLine with the given response code and reason string.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the reason
getReason
()

Retrieves the HTTP reason phrase.

public int

Returns:

the code
getResultCode
()

Retrieves the HTTP response code.

public String

Returns:

the version string
getVersion
()

Retrieves the version string.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

reasonback to summary
private final String reason
resultCodeback to summary
private final int resultCode
versionback to summary
private final String version

Constructor Detail

StatusLineback to summary
public StatusLine(String version, int resultCode, String reason)

Create a new StatusLine with the given response code and reason string.

Parameters
version:String

the version string (normally "HTTP/1.1" or "HTTP/1.0")

resultCode:int

the HTTP response code (200, 401, etc.)

reason:String

the reason phrase for the code

Method Detail

getReasonback to summary
public String getReason()

Retrieves the HTTP reason phrase.

Returns:String

the reason

getResultCodeback to summary
public int getResultCode()

Retrieves the HTTP response code.

Returns:int

the code

getVersionback to summary
public String getVersion()

Retrieves the version string.

Returns:String

the version string