Save This Page
Home » commons-httpclient-3.1-src » org.apache.commons » httpclient » [javadoc | source]
org.apache.commons.httpclient
public class: StatusLine [javadoc | source]
java.lang.Object
   org.apache.commons.httpclient.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.

Constructor:
 public StatusLine(String statusLine) throws HttpException 
    Default constructor.
    Parameters:
    statusLine - the status line returned from the HTTP server
    Throws:
    HttpException - if the status line is invalid
Method from org.apache.commons.httpclient.StatusLine Summary:
getHttpVersion,   getReasonPhrase,   getStatusCode,   startsWithHTTP,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.httpclient.StatusLine Detail:
 public final String getHttpVersion() 
 public final String getReasonPhrase() 
 public final int getStatusCode() 
 public static boolean startsWithHTTP(String s) 
    Tests if the string starts with 'HTTP' signature.
 public final String toString() 
    Return a string representation of this object.