java.lang.Object
org.apache.http.RequestLine
- public class RequestLine
- extends java.lang.Object
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: 390865 $
httpversion
private final HttpVersion httpversion
method
private final java.lang.String method
uri
private final java.lang.String uri
RequestLine
public RequestLine(java.lang.String method,
java.lang.String uri,
HttpVersion httpversion)
getMethod
public java.lang.String getMethod()
getHttpVersion
public HttpVersion getHttpVersion()
getUri
public java.lang.String getUri()
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
parse
public static RequestLine parse(org.apache.http.io.CharArrayBuffer buffer,
int indexFrom,
int indexTo)
throws ProtocolException
parse
public static final RequestLine parse(java.lang.String s)
throws ProtocolException
format
public static void format(org.apache.http.io.CharArrayBuffer buffer,
RequestLine requestline)
format
public static java.lang.String format(RequestLine requestline)