|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.message.BasicStatusLine
public class 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.
HttpStatus| Constructor Summary | |
|---|---|
BasicStatusLine(ProtocolVersion version,
int statusCode,
String reasonPhrase)
Creates a new status line with the given version, status, and reason. |
|
| Method Summary | |
|---|---|
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. |
ProtocolVersion |
getProtocolVersion()
|
String |
getReasonPhrase()
|
int |
getStatusCode()
|
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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| Method Detail |
|---|
public int getStatusCode()
getStatusCode in interface StatusLinepublic ProtocolVersion getProtocolVersion()
getProtocolVersion in interface StatusLinepublic String getReasonPhrase()
getReasonPhrase in interface StatusLinepublic String toString()
Object
toString in class Object
public Object clone()
throws CloneNotSupportedException
ObjectClasses which wish to support cloning must specify that they implement the Cloneable interface, since the implementation checks for this.
clone in class ObjectCloneNotSupportedException - if the receiver's class does not
implement the interface Cloneable.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||