public interface AbortableHttpRequest
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Aborts this http request.
|
void |
setConnectionRequest(ClientConnectionRequest connRequest)
Sets the
ClientConnectionRequest callback that can be
used to abort a long-lived request for a connection. |
void |
setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)
Sets the
ConnectionReleaseTrigger callback that can
be used to abort an active connection. |
void setConnectionRequest(ClientConnectionRequest connRequest) throws IOException
ClientConnectionRequest callback that can be
used to abort a long-lived request for a connection.
If the request is already aborted, throws an IOException.IOExceptionClientConnectionManagervoid setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger) throws IOException
ConnectionReleaseTrigger 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.IOExceptionvoid abort()
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)Copyright © 1999–2013 The Apache Software Foundation. All rights reserved.