This content has been marked as final.
Show 3 replies
-
1. Re: camel http in spring
njiang Sep 27, 2010 8:49 PM (in response to guest)I'm afraid you had to use the "Content-Type" directly as current Spring DSL doesn't support to reference the constance from class directly.
-
2. Re: camel http in spring
davsclaus Sep 28, 2010 12:15 AM (in response to njiang)Maybe we could introduce some syntax for that, so Camel can evaluate on startup the header name is spelt correctly?
<setHeader headerName="Exchange.CONTENT_TYPE"> ... </setHeader>
Either Camel detects that you have typed a constant field name from the Exchange interface and will lookup the value of that constant and use it.
However what about other constants? Maybe we need a special syntax to tell Camel that it's a constant?
Or maybe we don't need it if Camel can resolve that into a constant on an interface/class and just use it?
-
3. Re: camel http in spring
davsclaus Sep 28, 2010 12:19 AM (in response to guest)I created a ticket at Apache about this idea