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:
Cloneable,AbortableHttpRequest,HttpExecutionAware,HttpMessage,HttpRequest
- Direct Known Subclasses:
HttpRequestBase
public abstract class AbstractExecutionAwareRequest
extends AbstractHttpMessage
implements HttpExecutionAware, AbortableHttpRequest, Cloneable, HttpRequest
-
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Aborts this http request.clone()voidDeprecated.Do not use.booleanvoidreset()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, setParamsMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.http.HttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, getProtocolVersion, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamsMethods inherited from interface org.apache.http.HttpRequest
getRequestLine
-
Method Details
-
setConnectionRequest
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:
-
setReleaseTrigger
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:
-
isAborted
public boolean isAborted()- Specified by:
isAbortedin interfaceHttpExecutionAware
-
setCancellable
Description copied from interface:HttpExecutionAwareSetsCancellablefor the ongoing operation.- Specified by:
setCancellablein interfaceHttpExecutionAware- Since:
- 4.2
-
clone
- Throws:
CloneNotSupportedException
-
completed
Deprecated.Do not use.- Since:
- 4.2
-
reset
public void reset()Resets internal state of the request making it reusable.- Since:
- 4.2
-