Package org.apache.http.client.methods
Class AbstractExecutionAwareRequest
- java.lang.Object
-
- org.apache.http.message.AbstractHttpMessage
-
- org.apache.http.client.methods.AbstractExecutionAwareRequest
-
- All Implemented Interfaces:
java.lang.Cloneable,AbortableHttpRequest,HttpExecutionAware,HttpMessage,HttpRequest
- Direct Known Subclasses:
HttpRequestBase
public abstract class AbstractExecutionAwareRequest extends AbstractHttpMessage implements HttpExecutionAware, AbortableHttpRequest, java.lang.Cloneable, HttpRequest
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidabort()Aborts this http request.java.lang.Objectclone()voidcompleted()Deprecated.Do not use.booleanisAborted()voidreset()Resets internal state of the request making it reusable.voidsetCancellable(Cancellable cancellable)SetsCancellablefor the ongoing operation.voidsetConnectionRequest(ClientConnectionRequest connRequest)Deprecated.voidsetReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)Deprecated.-
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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.http.HttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, getProtocolVersion, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
-
Methods inherited from interface org.apache.http.HttpRequest
getRequestLine
-
-
-
-
Method Detail
-
setConnectionRequest
@Deprecated public void setConnectionRequest(ClientConnectionRequest connRequest)
Deprecated.Description copied from interface:AbortableHttpRequestSets theClientConnectionRequestcallback that can be used to abort a long-lived request for a connection. If the request is already aborted, throws anIOException.- Specified by:
setConnectionRequestin interfaceAbortableHttpRequest- See Also:
ClientConnectionManager
-
setReleaseTrigger
@Deprecated public void setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)
Deprecated.Description copied from interface:AbortableHttpRequestSets theConnectionReleaseTriggercallback that can be used to abort an active connection. Typically, this will be theManagedClientConnectionitself. If the request is already aborted, throws anIOException.- Specified by:
setReleaseTriggerin interfaceAbortableHttpRequest
-
abort
public void abort()
Description copied from interface:AbortableHttpRequestAborts this http request. Any active execution of this method should return immediately. If the request has not started, it will abort after the next execution. Aborting this request will cause all subsequent executions with this request to fail.- Specified by:
abortin interfaceAbortableHttpRequest- See Also:
HttpClient.execute(HttpUriRequest),HttpClient.execute(org.apache.http.HttpHost, org.apache.http.HttpRequest),HttpClient.execute(HttpUriRequest, org.apache.http.protocol.HttpContext),HttpClient.execute(org.apache.http.HttpHost, org.apache.http.HttpRequest, org.apache.http.protocol.HttpContext)
-
isAborted
public boolean isAborted()
- Specified by:
isAbortedin interfaceHttpExecutionAware
-
setCancellable
public void setCancellable(Cancellable cancellable)
Description copied from interface:HttpExecutionAwareSetsCancellablefor the ongoing operation.- Specified by:
setCancellablein interfaceHttpExecutionAware- Since:
- 4.2
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException- Throws:
java.lang.CloneNotSupportedException
-
completed
@Deprecated public void completed()
Deprecated.Do not use.- Since:
- 4.2
-
reset
public void reset()
Resets internal state of the request making it reusable.- Since:
- 4.2
-
-