@NotThreadSafe public abstract class HttpRequestBase extends AbstractExecutionAwareRequest implements HttpUriRequest, Configurable
HttpUriRequest
.headergroup, params
Constructor and Description |
---|
HttpRequestBase() |
Modifier and Type | Method and Description |
---|---|
RequestConfig |
getConfig() |
abstract String |
getMethod()
Returns the HTTP method this request uses, such as
GET ,
PUT , POST , or other. |
ProtocolVersion |
getProtocolVersion() |
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(ProtocolVersion version) |
void |
setURI(URI uri) |
void |
started() |
String |
toString() |
abort, clone, completed, isAborted, reset, setCancellable, setConnectionRequest, setReleaseTrigger
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
abort, isAborted
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
public abstract String getMethod()
HttpUriRequest
GET
,
PUT
, POST
, or other.getMethod
in interface HttpUriRequest
public void setProtocolVersion(ProtocolVersion version)
public ProtocolVersion getProtocolVersion()
getProtocolVersion
in interface 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 RequestLine getRequestLine()
getRequestLine
in interface HttpRequest
public RequestConfig getConfig()
getConfig
in interface Configurable
public void setConfig(RequestConfig config)
public void setURI(URI uri)
public void started()
public void releaseConnection()
AbstractExecutionAwareRequest.reset()
.Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.