Re: Scala DSL Header

2012-11-01 Thread Sam (Stephen Samuel)
exchange.in returns an Object, so there is no getHeader method available on that. There is an exchange.header but like I said it seems to return some DSL construct that I can't figure out how to get the value out of. On 1 November 2012 09:52, Willem jiang wrote: > > in.getHeader("header-name")

Re: Scala DSL Header

2012-11-01 Thread Willem jiang
in.getHeader("header-name") should work for you. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.javaeye.com (http://

Re: Scala DSL Header

2012-11-01 Thread Willem jiang
If you can access the exchange directly, you can use exchange.in("header-key") to access the in message header. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogs

Scala DSL Header

2012-11-01 Thread Sam (Stephen Samuel)
Hi all, How can I get the value of a header from an exchange using the Scala DSL. Maybe I'm going mad but in.header("header-name") gives me a variable of type HeaderExpression or HeaderLanguage (can't remember which) and I can't seem to get the "value" from that ?