Remove Properties
The RemoveProperties EIP allows you to remove Properties from you exchange.
Options
The Remove Properties eip supports 2 options, which are listed below.
Name | Description | Default | Type |
---|---|---|---|
pattern |
Required Name or pattern of properties to remove. The pattern is matched in the following order: 1 = exact match 2 = wildcard (pattern ends with a and the name starts with the pattern) 3 = regular expression (all of above is case in-sensitive). |
String |
|
excludePattern |
Name or pattern of properties to not remove. The pattern is matched in the following order: 1 = exact match 2 = wildcard (pattern ends with a and the name starts with the pattern) 3 = regular expression (all of above is case in-sensitive). |
String |
|
description |
Sets the description of this node. |
DescriptionDefinition |
Examples
The following example shows how to use the removeProperties EIP
RouteBuilder builder = new RouteBuilder() {
public void configure() {
from("direct:a")
.removeProperties("myProperty", "myProperty1")
.to("direct:b");
}
};
And the same example using XML:
<camelContext xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="direct:a"/>
<removeProperties pattern="myProperty*"/>
<to uri="direct:b"/>
</route>
</camelContext>