Android
org.apache.http.client
public interface

org.apache.http.client.HttpRequestRetryHandler

org.apache.http.client.HttpRequestRetryHandler

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

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

Details

Public Methods

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

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
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48