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 Dave <ja...@yahoo.com> on 2007/12/18 16:33:13 UTC
How to set retry handler, no API
In the tutorial,
DefaultMethodRetryHandler retryhandler = new
DefaultMethodRetryHandler(10, true);
client.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, retryhandler);
But the HttpClient does not have getParams() method.
I am using PostMethod.
I looked at other classes, but I could not find an API to set retry
handler.
DefaultMethodRetryHandler is deprecated.
Thanks for help.
Dave
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Re: How to set retry handler, no API
Posted by Roland Weber <os...@dubioso.net>.
Dave wrote:
> In the tutorial,
>
> DefaultMethodRetryHandler retryhandler = new
> DefaultMethodRetryHandler(10, true);
> client.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, retryhandler);
>
> But the HttpClient does not have getParams() method.
http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/HttpClient.html#getParams()
It's there since version 3.0.
cheers,
Roland
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org