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 void
abort()
Aborts this http request.java.lang.Object
clone()
void
completed()
Deprecated.Do not use.boolean
isAborted()
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 Detail
-
setConnectionRequest
@Deprecated public void setConnectionRequest(ClientConnectionRequest connRequest)
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:
ClientConnectionManager
-
setReleaseTrigger
@Deprecated public void setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)
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:
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:
isAborted
in interfaceHttpExecutionAware
-
setCancellable
public void setCancellable(Cancellable cancellable)
Description copied from interface:HttpExecutionAware
SetsCancellable
for the ongoing operation.- Specified by:
setCancellable
in 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
-
-