Top Description Methods
org.apache.http.client.methods

public Interface AbortableHttpRequest

Known Direct Implementers
org.apache.http.client.methods.AbstractExecutionAwareRequest
Annotations
@Deprecated
Imports
org.apache.http.conn.ClientConnectionRequest, .ConnectionReleaseTrigger, java.io.IOException

Deprecated

(4.3) use HttpExecutionAware

Interface representing an HTTP request that can be aborted by shutting down the underlying HTTP connection.
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public void
abort()

Aborts this http request.

public void
setConnectionRequest(ClientConnectionRequest connRequest)

Deprecated as a consequence of ClientConnectionRequest being deprecated.
Sets the org.apache.http.conn.ClientConnectionRequest callback that can be used to abort a long-lived request for a connection.
public void
setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)

Sets the ConnectionReleaseTrigger callback that can be used to abort an active connection.

Method Detail

abortback to summary
public void abort()

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.

See Also
org.apache.http.client.HttpClient#execute(HttpUriRequest), org.apache.http.client.HttpClient#execute(org.apache.http.HttpHost, org.apache.http.HttpRequest), org.apache.http.client.HttpClient#execute(HttpUriRequest, org.apache.http.protocol.HttpContext), org.apache.http.client.HttpClient#execute(org.apache.http.HttpHost, org.apache.http.HttpRequest, org.apache.http.protocol.HttpContext)
setConnectionRequestback to summary
public void setConnectionRequest(ClientConnectionRequest connRequest) throws IOException

Deprecated

as a consequence of ClientConnectionRequest being deprecated. See corresponding docs for further information.

Sets the org.apache.http.conn.ClientConnectionRequest callback that can be used to abort a long-lived request for a connection. If the request is already aborted, throws an IOException.

See Also
org.apache.http.conn.ClientConnectionManager
setReleaseTriggerback to summary
public void setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger) throws IOException

Sets the ConnectionReleaseTrigger callback that can be used to abort an active connection. Typically, this will be the org.apache.http.conn.ManagedClientConnection itself. If the request is already aborted, throws an IOException.