org.apache.http.message
Class BasicRequestLine
java.lang.Object
org.apache.http.message.BasicRequestLine
- All Implemented Interfaces:
- RequestLine
public class BasicRequestLine
- extends java.lang.Object
- implements RequestLine
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: 503402 $
- Author:
- Oleg Kalnichevski
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BasicRequestLine
public BasicRequestLine(java.lang.String method,
java.lang.String uri,
HttpVersion httpversion)
getMethod
public java.lang.String getMethod()
- Specified by:
getMethod
in interface RequestLine
getHttpVersion
public HttpVersion getHttpVersion()
- Specified by:
getHttpVersion
in interface RequestLine
getUri
public java.lang.String getUri()
- Specified by:
getUri
in interface RequestLine
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
parse
public static RequestLine parse(CharArrayBuffer buffer,
int indexFrom,
int indexTo)
throws ProtocolException
- Throws:
ProtocolException
parse
public static final RequestLine parse(java.lang.String s)
throws ProtocolException
- Throws:
ProtocolException
format
public static void format(CharArrayBuffer buffer,
RequestLine requestline)
format
public static java.lang.String format(RequestLine requestline)
Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.