Class BasicRequestLine

java.lang.Object
org.apache.http.message.BasicRequestLine
All Implemented Interfaces:
Cloneable, RequestLine

public class BasicRequestLine
extends Object
implements RequestLine, Cloneable
The first line of an HttpRequest. It contains the method, URI, and HTTP version of the request. For details, see RFC 2616.
Since:
4.0
Version:
$Revision: 604625 $
Author:
Oleg Kalnichevski
  • Constructor Details

  • Method Details

    • getMethod

      public String getMethod()
      Specified by:
      getMethod in interface RequestLine
    • getProtocolVersion

      public ProtocolVersion getProtocolVersion()
      Specified by:
      getProtocolVersion in interface RequestLine
    • getUri

      public String getUri()
      Specified by:
      getUri in interface RequestLine
    • toString

      public String toString()
      Description copied from class: Object
      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 is equivalent to the following expression:
         getClass().getName() + '@' + Integer.toHexString(hashCode())

      See Writing a useful toString method if you intend implementing your own toString method.

      Overrides:
      toString in class Object
      Returns:
      a printable representation of this object.
    • clone

      public Object clone() throws CloneNotSupportedException
      Description copied from class: Object
      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.
      Overrides:
      clone in class Object
      Returns:
      a copy of this object.
      Throws:
      CloneNotSupportedException - if this object's class does not implement the Cloneable interface.