What is the use-case for setting the body as null ?

On Mon, Nov 18, 2013 at 11:59 AM, Aki Yoshida <elak...@gmail.com> wrote:
> I would like to set the body to null using xml and would like do
> something as simple as
> <setBody><simple>${null}</simple></setBody>
>
> I experimented with this idea and added this null-expression to the
> simple expression builder so that this expression works.
>
> But I was not sure if there is already another way to do this without
> introducing this expression. I know a workaround to set the body to
> null by using something non-existent (e.g., ${header.ugly}), but that
> is ugly.
>
> So if there is no other way, I would like to add this simple
> expression to camel.
>
> regards, aki



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to