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 TypeMethodDescriptionvoid
abort()
Aborts this http request.clone()
void
Deprecated.Do not use.boolean
void
reset()
Resets internal state of the request making it reusable.void
setCancellable
(Cancellable cancellable) SetsCancellable
for the ongoing operation.void
setConnectionRequest
(ClientConnectionRequest connRequest) Deprecated.void
setReleaseTrigger
(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 Details
-
setConnectionRequest
Deprecated.Description copied from interface:AbortableHttpRequest
Sets theClientConnectionRequest
callback that can be used to abort a long-lived request for a connection. If the request is already aborted, throws anIOException
.- Specified by:
setConnectionRequest
in interfaceAbortableHttpRequest
- See Also:
-
setReleaseTrigger
Deprecated.Description copied from interface:AbortableHttpRequest
Sets theConnectionReleaseTrigger
callback that can be used to abort an active connection. Typically, this will be theManagedClientConnection
itself. If the request is already aborted, throws anIOException
.- Specified by:
setReleaseTrigger
in interfaceAbortableHttpRequest
-
abort
public void abort()Description copied from interface:AbortableHttpRequest
Aborts 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:
abort
in interfaceAbortableHttpRequest
- See Also:
-
isAborted
public boolean isAborted()- Specified by:
isAborted
in interfaceHttpExecutionAware
-
setCancellable
Description copied from interface:HttpExecutionAware
SetsCancellable
for the ongoing operation.- Specified by:
setCancellable
in 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
-