Remove Property
The RemoveProperty EIP allows you to remove a Property from your exchange.
Options
The Remove Property eip supports 1 options, which are listed below.
Name | Description | Default | Type |
---|---|---|---|
propertyName |
Required Name of property to remove. |
String |
|
description |
Sets the description of this node. |
DescriptionDefinition |
Examples
The following example shows how to use the Remove Property EIP
RouteBuilder builder = new RouteBuilder() {
public void configure() {
from("direct:a")
.removeProperty("myProperty")
.to("direct:b");
}
};
And the same example using XML:
<camelContext xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="direct:a"/>
<removeProperty propertyName="myProperty"/>
<to uri="direct:b"/>
</route>
</camelContext>