You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by DariusX <da...@gmail.com> on 2017/05/18 02:55:59 UTC
Global restConfiguration
I have something like this inside one of my Camel RouteBuilder classes:
restConfiguration().component("servlet").port(8080)..bindingMode(RestBindingMode.xml)
Does this apply to the component? In which case, it does not need to be
repeated in each Camel RouteBuilder, but must only be specified in one of
them?
Is that the right way to configure the global default for the rest
component?
--
View this message in context: http://camel.465427.n5.nabble.com/Global-restConfiguration-tp5799764.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Global restConfiguration
Posted by Tomohisa Igarashi <tm...@gmail.com>.
Hi,
I haven't tried it but from the code it seems to be applied at component level unless you override it in each rest definition.
https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/model/rest/RestBindingDefinition.java#L86
Thanks,
Tomo
On 05/18/2017 11:55 AM, DariusX wrote:
> I have something like this inside one of my Camel RouteBuilder classes:
>
> restConfiguration().component("servlet").port(8080)..bindingMode(RestBindingMode.xml)
>
> Does this apply to the component? In which case, it does not need to be
> repeated in each Camel RouteBuilder, but must only be specified in one of
> them?
>
> Is that the right way to configure the global default for the rest
> component?
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Global-restConfiguration-tp5799764.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>