@Immutable public class BasicStatusLine extends Object implements StatusLine, Cloneable, Serializable
StatusLine| 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() |
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
nullpublic int getStatusCode()
getStatusCode in interface StatusLinepublic ProtocolVersion getProtocolVersion()
getProtocolVersion in interface StatusLinepublic String getReasonPhrase()
getReasonPhrase in interface StatusLinepublic Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright © 2005–2013 The Apache Software Foundation. All rights reserved.