Package org.apache.http.message
Class BasicStatusLine
- java.lang.Object
-
- org.apache.http.message.BasicStatusLine
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,StatusLine
@Contract(threading=IMMUTABLE) public class BasicStatusLine extends java.lang.Object implements StatusLine, java.lang.Cloneable, java.io.Serializable
Basic implementation ofStatusLine
- Since:
- 4.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BasicStatusLine(ProtocolVersion version, int statusCode, java.lang.String reasonPhrase)
Creates a new status line with the given version, status, and reason.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
ProtocolVersion
getProtocolVersion()
java.lang.String
getReasonPhrase()
int
getStatusCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
BasicStatusLine
public BasicStatusLine(ProtocolVersion version, int statusCode, java.lang.String reasonPhrase)
Creates a new status line with the given version, status, and reason.- Parameters:
version
- the protocol version of the responsestatusCode
- the status code of the responsereasonPhrase
- the reason phrase to the status code, ornull
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
- Specified by:
getStatusCode
in interfaceStatusLine
-
getProtocolVersion
public ProtocolVersion getProtocolVersion()
- Specified by:
getProtocolVersion
in interfaceStatusLine
-
getReasonPhrase
public java.lang.String getReasonPhrase()
- Specified by:
getReasonPhrase
in interfaceStatusLine
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException
-
-