English | Site Directory

Android - An Open Handset Alliance Project

org.apache.http.impl.client.DefaultHttpRequestRetryHandler

java.lang.Object
org.apache.http.impl.client.DefaultHttpRequestRetryHandler HttpRequestRetryHandler

The default HttpRequestRetryHandler used by request executors.

Summary

Public Constructors

            DefaultHttpRequestRetryHandler(int retryCount, boolean requestSentRetryEnabled)
Default constructor
            DefaultHttpRequestRetryHandler()
Default constructor

Public Methods

          int  getRetryCount()
          boolean  isRequestSentRetryEnabled()
          boolean  retryRequest(IOException exception, int executionCount, HttpContext context)
Used retryCount and requestSentRetryEnabled to determine if the given method should be retried.
Methods inherited from class java.lang.Object
Methods inherited from interface org.apache.http.client.HttpRequestRetryHandler

Details

Public Constructors

public DefaultHttpRequestRetryHandler(int retryCount, boolean requestSentRetryEnabled)

Default constructor

public DefaultHttpRequestRetryHandler()

Default constructor

Public Methods

public int getRetryCount()

Returns

  • the maximum number of times a method will be retried

public boolean isRequestSentRetryEnabled()

Returns

  • true if this handler will retry methods that have successfully sent their request, false otherwise

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

Used retryCount and requestSentRetryEnabled to determine if the given method should be retried.
Build 111085-111085 - 25 Sep 2008 14:22