Skip to content

Most visited

Recently visited

navigation

HttpRequestRetryHandler | Android Developers

to top
Android APIs
Added in API level 1
public interface

HttpRequestRetryHandler

org.apache.http.client.HttpRequestRetryHandler
Known Indirect Subclasses

Class Overview

A handler for determining if an HttpRequest should be retried after a recoverable exception during execution.

Classes implementing this interface must synchronize access to shared data as methods of this interfrace may be executed from multiple threads

Summary

Public Methods
abstract boolean retryRequest(IOException exception, int executionCount, HttpContext context)
Determines if a method should be retried after an IOException occurs during execution.

Public Methods

public abstract boolean retryRequest (IOException exception, int executionCount, HttpContext context)

Added in API level 1

Determines if a method should be retried after an IOException occurs during execution.

Parameters
exception the exception that occurred
executionCount the number of times this method has been unsuccessfully executed
context the context for the request execution
Returns
  • true if the method should be retried, false otherwise
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.

Take a one-minute survey?
Help us improve Android tools and documentation.