On Mon, 2009-02-02 at 14:35 +0100, Joan Balagueró wrote:
> Hello,
>
>
>
> To set a retryHandler:
>
> this.objHttp.setHttpRequestRetryHandler(new
> DefaultHttpRequestRetryHandler(retryHttp, false));
>
>
>
> But if I want to disable this retry handler (because the user doesn’t want
> to retry anything), how can I do this?
>
---
DefaultHttpClient httpclient = new DefaultHttpClient();
httpclient.setHttpRequestRetryHandler(new HttpRequestRetryHandler() {
public boolean retryRequest(
IOException exception,
int executionCount,
HttpContext context) {
return false;
}
});
---
Oleg
>
>
> Thanks,
>
> Joan.
>
>
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]