camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Remove headers behaves differently and not as expected
Date Sat, 19 Jul 2014 06:09:42 GMT
Hi

Yes either use a regular expression or use a single * in the end as
wildcard. So *File* is not valid. Use a regular expression for that.

See this page
http://camel.apache.org/intercept

On Fri, Jul 18, 2014 at 10:21 PM, Naveen Raj <naveenrajis@gmail.com> wrote:
> 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.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message