hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Murat Balkan <mrbal...@gmail.com>
Subject Re: RetryHandler Per GetMethod
Date Thu, 10 Nov 2016 17:54:15 GMT
Hi,
So I need to put to the Context an attribute and read it in the handler?
Thank you

On 10 November 2016 at 05:38, Bernd Eckenfels <ecki@zusammenkunft.net>
wrote:

> In fact the retry handlers (some implementations)  already look at the
> method and only retry idempotent methods
>
> Gruss
> Bernd
> --
> http://bernd.eckenfels.net
>
>
>
>
> On Thu, Nov 10, 2016 at 11:15 AM +0100, "Oleg Kalnichevski" <
> olegk@apache.org> wrote:
>
>
>
>
>
>
>
>
>
>
> On Wed, 2016-11-09 at 09:05 -0500, Murat Balkan wrote:
> > Hello,
> >
> > Is it possible to set a retry handler per HttpGet? The following code
> taken
> > from the documentation only applies to 3x and seems to be deprecated.
> >
> >
> > httpget.getParams().
> >     setParameter(HttpMethodParams.RETRY_HANDLER, myretryhandler);
> >
> >
> > What I want to achieve is to set disableAutomaticRetries on the
> httpclient
> > level and set them at the httpget level.
> >
> > Is this supported?
> >
>
> No it is not, but one can use HttpContext attributes to customize the
> handler's behavior on the per request basis.
>
> Oleg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>
>
>
>
>
>


-- 
Murat Balkan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message