|
||||||||||
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.client.methods.AbstractExecutionAwareRequest org.apache.http.client.methods.HttpRequestBase
public abstract class HttpRequestBase
Base implementation of HttpUriRequest
.
Field Summary |
---|
Fields inherited from class org.apache.http.message.AbstractHttpMessage |
---|
headergroup, params |
Constructor Summary | |
---|---|
HttpRequestBase()
|
Method Summary | |
---|---|
RequestConfig |
getConfig()
Returns actual request configuration. |
abstract String |
getMethod()
Returns the HTTP method this request uses, such as GET ,
PUT , POST , or other. |
org.apache.http.ProtocolVersion |
getProtocolVersion()
|
org.apache.http.RequestLine |
getRequestLine()
|
URI |
getURI()
Returns the original request URI. |
void |
releaseConnection()
A convenience method to simplify migration from HttpClient 3.1 API. |
void |
setConfig(RequestConfig config)
|
void |
setProtocolVersion(org.apache.http.ProtocolVersion version)
|
void |
setURI(URI uri)
|
void |
started()
|
String |
toString()
|
Methods inherited from class org.apache.http.client.methods.AbstractExecutionAwareRequest |
---|
abort, clone, completed, isAborted, reset, setCancellable, setConnectionRequest, setReleaseTrigger |
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 |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.http.client.methods.HttpUriRequest |
---|
abort, isAborted |
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 HttpRequestBase()
Method Detail |
---|
public abstract String getMethod()
HttpUriRequest
GET
,
PUT
, POST
, or other.
getMethod
in interface HttpUriRequest
public void setProtocolVersion(org.apache.http.ProtocolVersion version)
public org.apache.http.ProtocolVersion getProtocolVersion()
getProtocolVersion
in interface org.apache.http.HttpMessage
public URI getURI()
Please note URI remains unchanged in the course of request execution and is not updated if the request is redirected to another location.
getURI
in interface HttpUriRequest
public org.apache.http.RequestLine getRequestLine()
getRequestLine
in interface org.apache.http.HttpRequest
public RequestConfig getConfig()
Configurable
getConfig
in interface Configurable
public void setConfig(RequestConfig config)
public void setURI(URI uri)
public void started()
public void releaseConnection()
AbstractExecutionAwareRequest.reset()
.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |