hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: HTTP RETRY HANDLER
Date Mon, 23 Mar 2009 10:27:22 GMT
On Mon, 2009-03-23 at 02:51 -0700, sveno wrote:
> 
> 
> olegk wrote:
> > 
> > ---
> > DefaultHttpClient httpclient = new DefaultHttpClient();
> > 
> > httpclient.setHttpRequestRetryHandler(new HttpRequestRetryHandler() {
> >    
> >     public boolean retryRequest(
> >             IOException exception, 
> >             int executionCount, 
> >             HttpContext context) {
> >         return false;
> >     }
> >     
> > });
> > ---
> > 
> > Oleg
> > 
> 
> Can we just have the following line to disable auto retries.
> this.objHttp.setHttpRequestRetryHandler(new
> DefaultHttpRequestRetryHandler(0, false)); 
> 

Yes, you can

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message