FileDocCategorySizeDatePackage
AbortableHttpRequest.javaAPI DocAndroid 1.5 API3623Wed May 06 22:41:10 BST 2009org.apache.http.client.methods

AbortableHttpRequest

public interface AbortableHttpRequest
Interface representing an HTTP request that can be aborted by shutting down the underlying HTTP connection.
author
Oleg Kalnichevski
version
$Revision: 639600 $
since
4.0

Fields Summary
Constructors Summary
Methods Summary
public voidabort()
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
HttpClient#execute(HttpUriRequest)
see
HttpClient#execute(org.apache.http.HttpHost, org.apache.http.HttpRequest)
see
HttpClient#execute(HttpUriRequest, org.apache.http.protocol.HttpContext)
see
HttpClient#execute(org.apache.http.HttpHost, org.apache.http.HttpRequest, org.apache.http.protocol.HttpContext)

public voidsetConnectionRequest(org.apache.http.conn.ClientConnectionRequest connRequest)
Sets the {@link ClientConnectionRequest} callback that can be used to abort a long-lived request for a connection. If the request is already aborted, throws an {@link IOException}.

see
ClientConnectionManager
see
ThreadSafeClientConnManager

public voidsetReleaseTrigger(org.apache.http.conn.ConnectionReleaseTrigger releaseTrigger)
Sets the {@link ConnectionReleaseTrigger} callback that can be used to abort an active connection. Typically, this will be the {@link ManagedClientConnection} itself. If the request is already aborted, throws an {@link IOException}.