camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: mandatory attribute in the ConvertBodyTo Spring DSL ?
Date Thu, 17 May 2012 09:33:36 GMT
Not sure I understood what you are looking for. <convertBodyTo> will:

- return the converted object if a suitable type converter could be found

- null if the message payload is null

- throw an exception if no suitable type converter could be found


Best,

Christian

Sent from a mobile device
Am 16.05.2012 17:16 schrieb "Olivier Roger" <olivier.roger@gmail.com>:

> Hello Camel !
>
> I was wondering if there was a possibility to enforce that the
> <convertBodyTo> EIP returns a non-null value.
> This is already the case when using the TypeConverter when choosing to use
> the mandatoryConvertTo() method instead of convertTo.
>
> Thank in advance,
>
> Olivier Roger
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/mandatory-attribute-in-the-ConvertBodyTo-Spring-DSL-tp5710933.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

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