Hi guys,
              I tried to work with the camel's remove header which works for
some and does not work for other patterns

It works for the below patterns

<removeHeaders pattern="*" />
<removeHeaders pattern="CamelFile*" />

It does not work for 
<removeHeaders pattern="*File*" />

Is the above expected?

Also in the exclude pattern I observe that the wildcard patterns * is not
recognised at all. 

eg.<setHeader headerName="firstCustomHeader">
                                <constant>firstCustomHeader</constant>
                        </setHeader>
                        <setHeader headerName="secondCustomHeader">
                                <constant>secondCustomHeader</constant>
                        </setHeader>
                        <setHeader headerName="thirdCustomHeader">
                                <constant>thirdCustomHeader</constant>
                        </setHeader>
                        <setHeader headerName="fourthCustomHeader">
                                <constant>fourthCustomHeader</constant>
                        </setHeader>
                       
                       <removeHeaders pattern="*"
excludePattern="fourth*|third*" />
the above removes all the header but does excludes the excludePattern value

<version>2.13.1</version>


Thanks,
Naveen Raj 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Remove-headers-behaves-differently-and-not-as-expected-tp5754020.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to