@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
null
public int getStatusCode()
getStatusCode
in interface StatusLine
public ProtocolVersion getProtocolVersion()
getProtocolVersion
in interface StatusLine
public java.lang.String getReasonPhrase()
getReasonPhrase
in interface StatusLine
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException