camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Anstey <jans...@gmail.com>
Subject Re: setHeader(String, String) deprecated !
Date Mon, 18 Aug 2008 15:36:30 GMT
Try this

setHeader("A", constant("value"))

Cheers,
Jon

cmoulliard wrote:
> Hi,
>
> I have discovered that the following method is deprecated now :
>
> setHeader(String headerName, String headerValue) (e.g setHeader("A",
> "value")
>
> and replaced by (I suppose) this method :
>
> setHeader(String nameOfTheHeader, Expression exp)
>
> My question is simple : How can I transpose the String headerValue of the
> deprecated method into an Expression ?
>
> Kind regards,
>
> Charles Moulliard
>
> -----
> Enterprise Architect
>
> Xpectis
> 12, route d'Esch
> L-1470 Luxembourg
>
> Phone +352 25 10 70 470
> Mobile +352 621 45 36 22
>
> e-mail : cmoulliard@xpectis.com
> web site :  www.xpectis.com www.xpectis.com 
> My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
>   


Mime
View raw message