You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by kalyan <re...@gmail.com> on 2013/05/28 18:21:19 UTC
Global definition for HttpClient.XXX options
Hello,
>From what I see in camel documentation (http://camel.apache.org/http.html),
every url needs to httpClient.XXX definitions in the query params.
Is there a global way to define all these so that it is not repeated for all
URLs which increases maintenance effort ?
Regards,
Kalyan
--
View this message in context: http://camel.465427.n5.nabble.com/Global-definition-for-HttpClient-XXX-options-tp5733368.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Global definition for HttpClient.XXX options
Posted by Babak Vahdat <ba...@swissonline.ch>.
Hi
One possible way would be to make use of a PropertyPlaceholder e.g.
{{my-global-httpClient-property-placeholder}} where you configure once and
reuse all over the places where appropriate:
http://camel.apache.org/using-propertyplaceholder.html
Babak
--
View this message in context: http://camel.465427.n5.nabble.com/Global-definition-for-HttpClient-XXX-options-tp5733368p5733380.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Global definition for HttpClient.XXX options
Posted by Christian Müller <ch...@gmail.com>.
In this case, I propose to use the "httpClientConfigurer" option if you can
write some lines of Java code...
Best,
Christian Müller
-----------------
Software Integration Specialist
Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html
https://www.linkedin.com/pub/christian-mueller/11/551/642
On Tue, May 28, 2013 at 6:21 PM, kalyan <re...@gmail.com> wrote:
> Hello,
>
> From what I see in camel documentation (http://camel.apache.org/http.html
> ),
> every url needs to httpClient.XXX definitions in the query params.
>
> Is there a global way to define all these so that it is not repeated for
> all
> URLs which increases maintenance effort ?
>
> Regards,
> Kalyan
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Global-definition-for-HttpClient-XXX-options-tp5733368.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>