This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 8e6d1a0671a39b743312f5e413ca9e13f7aaf638 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Mar 6 13:43:51 2018 +0100 Added Remove Properties EIP docs --- .../src/main/docs/eips/removeProperties-eip.adoc | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/camel-core/src/main/docs/eips/removeProperties-eip.adoc b/camel-core/src/main/docs/eips/removeProperties-eip.adoc new file mode 100644 index 0000000..1aec420 --- /dev/null +++ b/camel-core/src/main/docs/eips/removeProperties-eip.adoc @@ -0,0 +1,46 @@ +[[removeProperties-eip]] +== Remove Properties EIP + +The RemoveProperties EIP allows you to remove Properties from you exchange. + +=== Options + +// eip options: START +The Remove Properties EIP supports 2 options which are listed below: + +[width="100%",cols="2,5,^1,2",options="header"] +|=== +| Name | Description | Default | Type +| *pattern* | *Required* Name or pattern of properties to remove | | String +| *excludePattern* | Name or pattern of properties to not remove | | String +|=== +// eip options: END + +=== Examples + +The following example shows how to use the removeProperties EIP + +[source,java] +---- +RouteBuilder builder = new RouteBuilder() { + public void configure() { + from("direct:a") + .removeProperties("myProperty", "myProperty1") + .to("direct:b"); + } +}; +---- + + +And the same example using XML: + +[source,xml] +---- +<camelContext xmlns="http://camel.apache.org/schema/spring"> + <route> + <from uri="direct:a"/> + <removeProperties pattern="myProperty*"/> + <to uri="direct:b"/> + </route> +</camelContext> +---- -- To stop receiving notification emails like this one, please contact acosent...@apache.org.