You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by prabhuj <pr...@gmail.com> on 2016/10/04 13:45:08 UTC

Add component options to camel-ahc component

If my endpoint is "https://example.com/v1/hello?apiKey=aaaaa", How do i add
ahc component options (e.g., throwExceptionOnFailure) ?

https://example.com/v1/hello?apiKey=aaaaa&throwExceptionOnFailure=false ?

How would ahc differentiate the actual endpoint vs component options ?





--
View this message in context: http://camel.465427.n5.nabble.com/Add-component-options-to-camel-ahc-component-tp5788349.html
Sent from the Camel - Users mailing list archive at Nabble.com.

RE: Add component options to camel-ahc component

Posted by "Siano, Stephan" <st...@sap.com>.
Hi,

I am not sure whether I understand your question correctly. https://example.com/v1/hello?apiKey=aaaaa&throwExceptionOnFailure=false will set the throwExceptionOnFailure endpoint option to false (and forward the apiKey parameter to the server). Component options are set on the component level and apply to all endpoints unless they are overwritten by endpoint options.

Best regards
Stephan

-----Original Message-----
From: prabhuj [mailto:prabhu.undefined@gmail.com] 
Sent: Dienstag, 4. Oktober 2016 15:45
To: users@camel.apache.org
Subject: Add component options to camel-ahc component

If my endpoint is "https://example.com/v1/hello?apiKey=aaaaa", How do i add
ahc component options (e.g., throwExceptionOnFailure) ?

https://example.com/v1/hello?apiKey=aaaaa&throwExceptionOnFailure=false ?

How would ahc differentiate the actual endpoint vs component options ?





--
View this message in context: http://camel.465427.n5.nabble.com/Add-component-options-to-camel-ahc-component-tp5788349.html
Sent from the Camel - Users mailing list archive at Nabble.com.