org.apache.http.message.BasicStatusLine
Represents a status line as returned from a HTTP server.
See RFC2616 section 6.1.
This class is immutable and therefore inherently thread safe.
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
BasicStatusLine(ProtocolVersion version, int statusCode, String reasonPhrase)
Creates a new status line with the given version, status, and reason.
Parameters
version
| the protocol version of the response |
statusCode
| the status code of the response |
reasonPhrase
| the reason phrase to the status code, or
null
|
Public Methods
public
Object
clone()
Returns a new instance of the same class as the receiver, whose slots
have been filled in with the values in the slots of the receiver.
Classes which wish to support cloning must specify that they implement
the Cloneable interface, since the implementation checks for this.
Returns
- Object a shallow copy of this object.
public
String
getReasonPhrase()
public
int
getStatusCode()
public
String
toString()
Returns a string containing a concise, human-readable description of the
receiver.
Returns
- String a printable representation for the receiver.