public abstract class AbstractExecutionAwareRequest extends AbstractHttpMessage implements HttpExecutionAware, AbortableHttpRequest, Cloneable, HttpRequest
headergroup, params| Modifier | Constructor and Description |
|---|---|
protected |
AbstractExecutionAwareRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Aborts this http request.
|
Object |
clone() |
void |
completed() |
boolean |
isAborted() |
void |
reset()
Resets internal state of the request making it reusable.
|
void |
setCancellable(Cancellable cancellable)
Sets
Cancellable for the ongoing operation. |
void |
setConnectionRequest(ClientConnectionRequest connRequest)
Deprecated.
|
void |
setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)
Deprecated.
|
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequestLineaddHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, getProtocolVersion, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams@Deprecated public void setConnectionRequest(ClientConnectionRequest connRequest)
AbortableHttpRequestClientConnectionRequest
callback that can be used to abort a long-lived request for a connection.
If the request is already aborted, throws an IOException.setConnectionRequest in interface AbortableHttpRequestClientConnectionManager@Deprecated public void setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)
AbortableHttpRequestConnectionReleaseTrigger callback that can
be used to abort an active connection.
Typically, this will be the
ManagedClientConnection itself.
If the request is already aborted, throws an IOException.setReleaseTrigger in interface AbortableHttpRequestpublic void abort()
AbortableHttpRequestabort in interface AbortableHttpRequestHttpClient.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)public boolean isAborted()
isAborted in interface HttpExecutionAwarepublic void setCancellable(Cancellable cancellable)
HttpExecutionAwareCancellable for the ongoing operation.setCancellable in interface HttpExecutionAwarepublic Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic void completed()
public void reset()
Copyright © 1999–2013 The Apache Software Foundation. All rights reserved.