Package org.apache.http.client.methods
Class HttpRequestBase
java.lang.Object
org.apache.http.message.AbstractHttpMessage
org.apache.http.client.methods.AbstractExecutionAwareRequest
org.apache.http.client.methods.HttpRequestBase
- All Implemented Interfaces:
Cloneable,AbortableHttpRequest,Configurable,HttpExecutionAware,HttpUriRequest,HttpMessage,HttpRequest
- Direct Known Subclasses:
HttpDelete,HttpEntityEnclosingRequestBase,HttpGet,HttpHead,HttpOptions,HttpTrace
public abstract class HttpRequestBase
extends AbstractExecutionAwareRequest
implements HttpUriRequest, Configurable
Base implementation of
HttpUriRequest.- Since:
- 4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns actual request configuration.abstract StringReturns the HTTP method this request uses, such asGET,PUT,POST, or other.Returns the protocol version this message is compatible with.Returns the request line of this request.getURI()Returns the original request URI.voidA convenience method to simplify migration from HttpClient 3.1 API.voidsetConfig(RequestConfig config) voidsetProtocolVersion(ProtocolVersion version) voidvoidstarted()toString()Methods inherited from class org.apache.http.client.methods.AbstractExecutionAwareRequest
abort, clone, completed, isAborted, reset, setCancellable, setConnectionRequest, setReleaseTriggerMethods inherited from class org.apache.http.message.AbstractHttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamsMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.http.HttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamsMethods inherited from interface org.apache.http.client.methods.HttpUriRequest
abort, isAborted
-
Constructor Details
-
HttpRequestBase
public HttpRequestBase()
-
-
Method Details
-
getMethod
Description copied from interface:HttpUriRequestReturns the HTTP method this request uses, such asGET,PUT,POST, or other.- Specified by:
getMethodin interfaceHttpUriRequest
-
setProtocolVersion
- Since:
- 4.3
-
getProtocolVersion
Description copied from interface:HttpMessageReturns the protocol version this message is compatible with.- Specified by:
getProtocolVersionin interfaceHttpMessage
-
getURI
Returns the original request URI.Please note URI remains unchanged in the course of request execution and is not updated if the request is redirected to another location.
- Specified by:
getURIin interfaceHttpUriRequest
-
getRequestLine
Description copied from interface:HttpRequestReturns the request line of this request.- Specified by:
getRequestLinein interfaceHttpRequest- Returns:
- the request line.
-
getConfig
Description copied from interface:ConfigurableReturns actual request configuration.- Specified by:
getConfigin interfaceConfigurable
-
setConfig
-
setURI
-
started
public void started()- Since:
- 4.2
-
releaseConnection
public void releaseConnection()A convenience method to simplify migration from HttpClient 3.1 API. This method is equivalent toAbstractExecutionAwareRequest.reset().- Since:
- 4.2
-
toString
-