THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
The Constant Expression Language is really just a way to specify constant strings as a type of expression.
Available as of Camel 1.5
Example usage
The The setHeader
element of the Spring DSL can utilize a constant expression like:
Code Block | ||
---|---|---|
| ||
<route>
<from uri="seda:a"/>
<setHeader headerName="theHeader">
<constant>the value</constant>
</setHeader>
<to uri="mock:b"/>
</route>
|
in In this case, the Message coming from the the seda:a
Endpoint will have 'have theHeader
' header set to the constant value 'the value' the value
.
And the same example using Java DSL:
Code Block | ||||
---|---|---|---|---|
| ||||
from("seda:a")
.setHeader("theHeader", constant("the value"))
.to("mock:b");
|
Dependencies
The Constant language is part of camel-core
.