@Contract(threading=IMMUTABLE) public class BasicStatusLine extends java.lang.Object implements StatusLine, java.lang.Cloneable, java.io.Serializable
StatusLine| Modifier and Type | Field and Description |
|---|---|
private ProtocolVersion |
protoVersion
The protocol version.
|
private java.lang.String |
reasonPhrase
The reason phrase.
|
private static long |
serialVersionUID |
private int |
statusCode
The status code.
|
| Constructor and Description |
|---|
BasicStatusLine(ProtocolVersion version,
int statusCode,
java.lang.String reasonPhrase)
Creates a new status line with the given version, status, and reason.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
ProtocolVersion |
getProtocolVersion() |
java.lang.String |
getReasonPhrase() |
int |
getStatusCode() |
java.lang.String |
toString() |
private static final long serialVersionUID
private final ProtocolVersion protoVersion
private final int statusCode
private final java.lang.String reasonPhrase
public BasicStatusLine(ProtocolVersion version, int statusCode, java.lang.String reasonPhrase)
version - the protocol version of the responsestatusCode - the status code of the responsereasonPhrase - the reason phrase to the status code, or
nullpublic int getStatusCode()
getStatusCode in interface StatusLinepublic ProtocolVersion getProtocolVersion()
getProtocolVersion in interface StatusLinepublic java.lang.String getReasonPhrase()
getReasonPhrase in interface StatusLinepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException