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

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>