org.apache.http.message
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
BasicRequestLine
public BasicRequestLine(String method,
String uri,
ProtocolVersion version)
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.
Please submit a feedback, bug or feature