| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.httpclient.StatusLine
public class StatusLine
Represents a Status-Line as returned from a HTTP server. RFC2616 states the following regarding the Status-Line:
 6.1 Status-Line
  The first line of a Response message is the Status-Line, consisting
  of the protocol version followed by a numeric status code and its
  associated textual phrase, with each element separated by SP
  characters. No CR or LF is allowed except in the final CRLF sequence.
      Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF
 
 This class is immutable and is inherently thread safe.
HttpStatus| Constructor Summary | |
|---|---|
| StatusLine(String statusLine)Default constructor. | |
| Method Summary | |
|---|---|
|  String | getHttpVersion() | 
|  String | getReasonPhrase() | 
|  int | getStatusCode() | 
| static boolean | startsWithHTTP(String s)Tests if the string starts with 'HTTP' signature. | 
|  String | toString()Return a string representation of this object. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public StatusLine(String statusLine)
           throws HttpException
statusLine - the status line returned from the HTTP server
HttpException - if the status line is invalid| Method Detail | 
|---|
public final int getStatusCode()
public final String getHttpVersion()
public final String getReasonPhrase()
public final String toString()
toString in class Objectpublic static boolean startsWithHTTP(String s)
s - string to test
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||