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.Objectclone()ProtocolVersiongetProtocolVersion()java.lang.StringgetReasonPhrase()intgetStatusCode()java.lang.StringtoString() 
 - 
 
- 
- 
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:
 getStatusCodein interfaceStatusLine
 
- 
getProtocolVersion
public ProtocolVersion getProtocolVersion()
- Specified by:
 getProtocolVersionin interfaceStatusLine
 
- 
getReasonPhrase
public java.lang.String getReasonPhrase()
- Specified by:
 getReasonPhrasein interfaceStatusLine
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException- Throws:
 java.lang.CloneNotSupportedException
 
 - 
 
 -