Build 1.0_r1(from source)

org.apache.http.message
Class BasicRequestLine

java.lang.Object
  extended by 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

Constructor Summary
BasicRequestLine(String method, String uri, ProtocolVersion version)
           
 
Method Summary
 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.
 String getMethod()
           
 ProtocolVersion getProtocolVersion()
           
 String getUri()
           
 String toString()
          Returns a string containing a concise, human-readable description of the receiver.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicRequestLine

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

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 the receiver.

Overrides:
toString in class Object
Returns:
String a printable representation for the receiver.

clone

public Object clone()
             throws CloneNotSupportedException
Description copied from class: Object
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.

Overrides:
clone in class Object
Returns:
Object a shallow copy of this object.
Throws:
CloneNotSupportedException - if the receiver's class does not implement the interface Cloneable.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature