public class

BasicRequestLine

extends Object
implements Cloneable RequestLine
java.lang.Object
   ↳ org.apache.http.message.BasicRequestLine

Class Overview

The first line of an HttpRequest. It contains the method, URI, and HTTP version of the request. For details, see RFC 2616.

Summary

Public Constructors
BasicRequestLine(String method, String uri, ProtocolVersion version)
Public Methods
Object clone()
Creates and returns a copy of this Object.
String getMethod()
ProtocolVersion getProtocolVersion()
String getUri()
String toString()
Returns a string containing a concise, human-readable description of this object.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.http.RequestLine

Public Constructors

public BasicRequestLine (String method, String uri, ProtocolVersion version)

Since: API Level 1

Public Methods

public Object clone ()

Since: API Level 1

Creates and returns a copy of this Object. The default implementation returns a so-called "shallow" copy: It creates a new instance of the same class and then copies the field values (including object references) from this instance to the new instance. A "deep" copy, in contrast, would also recursively clone nested objects. A subclass that needs to implement this kind of cloning should call super.clone() to create the new instance and then create deep copies of the nested, mutable objects.

Returns
  • a copy of this object.

public String getMethod ()

Since: API Level 1

public ProtocolVersion getProtocolVersion ()

Since: API Level 1

public String getUri ()

Since: API Level 1

public String toString ()

Since: API Level 1

Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation simply concatenates the class name, the '@' sign and a hexadecimal representation of the object's hashCode(), that is, it is equivalent to the following expression:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns
  • a printable representation of this object.