Android

org.apache.http.message.BasicStatusLine

java.lang.Object
org.apache.http.message.BasicStatusLine Cloneable StatusLine

Represents a status line as returned from a HTTP server. See RFC2616 section 6.1. This class is immutable and therefore inherently thread safe.

See Also

Summary

Public Constructors

            BasicStatusLine(ProtocolVersion version, int statusCode, String reasonPhrase)
Creates a new status line with the given version, status, and reason.

Public Methods

          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
Methods inherited from interface org.apache.http.StatusLine

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 ProtocolVersion getProtocolVersion()

Returns

  • the HTTP-Version

public String getReasonPhrase()

Returns

  • the Reason-Phrase

public int getStatusCode()

Returns

  • the Status-Code

public String toString()

Returns a string containing a concise, human-readable description of the receiver.

Returns

  • String a printable representation for the receiver.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56