Remove Property

The Remove Property EIP allows you to remove a single property from the 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

Example

We want to remove an exchange property with key "myProperty" from the exchange:

from("seda:b")
  .removeProperty("myProperty")
  .to("mock:result");

And in XML:

<route>
  <from uri="seda:b"/>
  <removeProperty name="myProperty"/>
  <to uri="mock:result"/>
</route>

See Also

Camel provides the following EIPs for removing headers or exchange properties: