Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
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