@Immutable public class BasicStatusLine extends java.lang.Object implements StatusLine, java.lang.Cloneable, java.io.Serializable
StatusLine| 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() |
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