You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by ever friend <ev...@yahoo.com> on 2009/03/06 21:45:12 UTC

HttpClient exception handling and method recovery in httpclient4.0?

Greeting,
 
In httpclient3.x, there are some APIs for HttpClient exception handling and method recovery, e.g. 
client.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, 
  new DefaultHttpMethodRetryHandler());
 
Does httpclient4.0 have some similar APIs for httpexception, and retry handler?
 
I did not find them in httpclient4.0.
 
Thank you for any help in advance!
 
Best Regards,
 
ever


      

Re: HttpClient exception handling and method recovery in httpclient4.0?

Posted by Oleg Kalnichevski <ol...@apache.org>.
ever friend wrote:
> Greeting,
>  
> In httpclient3.x, there are some APIs for HttpClient exception handling and method recovery, e.g. 
> client.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, 
>   new DefaultHttpMethodRetryHandler());
>  
> Does httpclient4.0 have some similar APIs for httpexception, and retry handler?
>  
> I did not find them in httpclient4.0.
>  
> Thank you for any help in advance!
>  
> Best Regards,
>  
> ever
> 
> 
>       

See
http://hc.apache.org/httpcomponents-client/httpclient/apidocs/org/apache/http/impl/client/AbstractHttpClient.html#setHttpRequestRetryHandler(org.apache.http.client.HttpRequestRetryHandler)
http://hc.apache.org/httpcomponents-client/httpclient/apidocs/org/apache/http/client/HttpRequestRetryHandler.html

Oleg

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