|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.message.AbstractHttpMessage org.apache.http.message.BasicHttpRequest
public class BasicHttpRequest
Basic implementation of HttpRequest
.
Field Summary |
---|
Fields inherited from class org.apache.http.message.AbstractHttpMessage |
---|
headergroup, params |
Constructor Summary | |
---|---|
BasicHttpRequest(RequestLine requestline)
Creates an instance of this class using the given request line. |
|
BasicHttpRequest(String method,
String uri)
Creates an instance of this class using the given request method and URI. |
|
BasicHttpRequest(String method,
String uri,
ProtocolVersion ver)
Creates an instance of this class using the given request method, URI and the HTTP protocol version. |
Method Summary | |
---|---|
ProtocolVersion |
getProtocolVersion()
Returns the HTTP protocol version to be used for this request. |
RequestLine |
getRequestLine()
Returns the request line of this request. |
String |
toString()
|
Methods inherited from class org.apache.http.message.AbstractHttpMessage |
---|
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.http.HttpMessage |
---|
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams |
Constructor Detail |
---|
public BasicHttpRequest(String method, String uri)
method
- request method.uri
- request URI.public BasicHttpRequest(String method, String uri, ProtocolVersion ver)
method
- request method.uri
- request URI.ver
- HTTP protocol version.public BasicHttpRequest(RequestLine requestline)
requestline
- request line.Method Detail |
---|
public ProtocolVersion getProtocolVersion()
getProtocolVersion
in interface HttpMessage
BasicHttpRequest(String, String)
public RequestLine getRequestLine()
getRequestLine
in interface HttpRequest
BasicHttpRequest(String, String)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |