On Wed, 2018-05-16 at 17:09 +0300, / wrote:
> Hi there,
>
> I am looking for an example on how to configure HttpClient5 after it
> has
> been built and how to extract/print some of its configuration.
>
> Once I have an HttpClient object, how do I go about and change some
> of
> its settings, fo
On 5/16/2018 8:09 AM, / wrote:
I am looking for an example on how to configure HttpClient5 after it
has been built and how to extract/print some of its configuration.
Once I have an HttpClient object, how do I go about and change some of
its settings, for example connection timeout or user-age
Thanks,
if I understood correctly, the pattern should be:
1) Create a RequestConfig (rc) object and keep it.
2) If you need to modify httpclient, modify the kept RequestConfig object
3) After doing said modifications **re-create httpclient** with kept
RequestConfig.
4) Keep the RequestConfig.
Subject: Re: Fwd: HttpClient5 : simple example on how to configure timeout
after build()
Thanks,
if I understood correctly, the pattern should be:
1) Create a RequestConfig (rc) object and keep it.
2) If you need to modify httpclient, modify the kept RequestConfig object
3) After doing said
On Wed, 2018-05-16 at 18:01 +0300, / wrote:
> Thanks,
>
> if I understood correctly, the pattern should be:
>
> 1) Create a RequestConfig (rc) object and keep it.
> 2) If you need to modify httpclient, modify the kept RequestConfig
> object
> 3) After doing said modifications **re-create httpclie
CEConfigParamNotFoundException {
>
> // setup request timeouts
> return RequestConfig.custom().setConnectionRequestTimeout(aaa).
> setConnectTimeout(bbb). setSocketTimeout(ccc).build();
> }
>
>
>
>
>
>
>
> -Original Message-
> From: / [mailto:is
On 5/16/2018 8:42 AM, Shawn Heisey wrote:
> RequestConfig rc = RequestConfig.custom().setConnectTimeout(15000)
> .setSocketTimeout(12).build();
> httpClient = HttpClients.custom().setDefaultRequestConfig(rc)
> .setMaxConnPerRoute(300).setMaxConnTotal(5000).disableAutomaticRetries(
).
setConnectTimeout(bbb). setSocketTimeout(ccc).build();
}
-Original Message-
From: / [mailto:isla...@yahoo.co.uk.INVALID]
Sent: Wednesday, May 16, 2018 4:01 PM
To: httpclient-users@hc.apache.org
Subject: Re: Fwd: HttpClient5 : simple example on how to configure
timeout after build()
Thanks,
if I
On Wed, 2018-05-16 at 14:11 -0600, Shawn Heisey wrote:
> On 5/16/2018 8:42 AM, Shawn Heisey wrote:
> > RequestConfig rc =
> > RequestConfig.custom().setConnectTimeout(15000)
> > .setSocketTimeout(12).build();
> > httpClient = HttpClients.custom().setDefaultRequestConfig(rc)
> > .s
etRequestConfig());
> > > HttpResponse serviceResponse = httpClient.execute(httpRequest,
> > > httpContext);
> > >
> > >
> > > // make the request config
> > > private RequestConfig getRequestConfig() throws
> > > PCEConfigParamNotFoundException
fig
private RequestConfig getRequestConfig() throws
PCEConfigParamNotFoundException {
// setup request timeouts
return RequestConfig.custom().setConnectionRequestTimeout(aaa).
setConnectTimeout(bbb). setSocketTimeout(ccc).build();
}
-Original Message-
From: / [mailto:isla...@yahoo.co.uk.INVALID]
Sent: W
On 5/17/2018 3:51 AM, Oleg Kalnichevski wrote:
HttpClientBuilder in HC4 got overloaded with so many connection
management parameters which could easily get rendered ineffective by
explicitly passing an instance of HttpClientConnectionManager to the
builder.
The same could with HC5 would look lik
On Thu, 2018-05-17 at 09:17 -0600, Shawn Heisey wrote:
> On 5/17/2018 3:51 AM, Oleg Kalnichevski wrote:
> > HttpClientBuilder in HC4 got overloaded with so many connection
> > management parameters which could easily get rendered ineffective
> > by
> > explicitly passing an instance of HttpClientCo
13 matches
Mail list logo