@Contract(threading=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
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
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.