Skip to content

Most visited

Recently visited

navigation

AbortableHttpRequest | Android Developers

to top
Android APIs
Added in API level 1
public interface

AbortableHttpRequest

org.apache.http.client.methods.AbortableHttpRequest
Known Indirect Subclasses

Class Overview

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

Summary

Public Methods
abstract void abort()
Aborts this http request.
abstract void setConnectionRequest(ClientConnectionRequest connRequest)
Sets the ClientConnectionRequest callback that can be used to abort a long-lived request for a connection.
abstract void setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)
Sets the ConnectionReleaseTrigger callback that can be used to abort an active connection.

Public Methods

public abstract void abort ()

Added in API level 1

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.

public abstract void setConnectionRequest (ClientConnectionRequest connRequest)

Added in API level 1

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

Throws
IOException

public abstract void setReleaseTrigger (ConnectionReleaseTrigger releaseTrigger)

Added in API level 1

Sets the 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.

Throws
IOException
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.