@Contract(threading=IMMUTABLE) public class BasicStatusLine extends Object implements StatusLine, Cloneable, Serializable
StatusLine
Modifier and Type | Field and Description |
---|---|
private ProtocolVersion |
protoVersion
The protocol version.
|
private String |
reasonPhrase
The reason phrase.
|
private static long |
serialVersionUID |
private int |
statusCode
The status code.
|
Constructor and Description |
---|
BasicStatusLine(ProtocolVersion version,
int statusCode,
String reasonPhrase)
Creates a new status line with the given version, status, and reason.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
ProtocolVersion |
getProtocolVersion() |
String |
getReasonPhrase() |
int |
getStatusCode() |
String |
toString() |
private static final long serialVersionUID
private final ProtocolVersion protoVersion
private final int statusCode
private final String reasonPhrase
public BasicStatusLine(ProtocolVersion version, int statusCode, String reasonPhrase)
version
- the protocol version of the responsestatusCode
- the status code of the responsereasonPhrase
- the reason phrase to the status code, or
null
public int getStatusCode()
getStatusCode
in interface StatusLine
public ProtocolVersion getProtocolVersion()
getProtocolVersion
in interface StatusLine
public String getReasonPhrase()
getReasonPhrase
in interface StatusLine
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses