See simple or file language for details.

On Mon, 13 Nov 2017 at 19:29, Pakarinen, Jari <jari.pakari...@orion.fi>
wrote:

> Hi,
>
> Thanks. I understand. How do I go about lowercasing the filename value?
>
> Jari
>
> Lähetetty Samsung Galaxy -älypuhelimesta.
>
>
> -------- Alkuperäinen viesti --------
> Lähettäjä: Claus Ibsen <claus.ib...@gmail.com>
> Päivämäärä: 13.11.2017 17.04 (GMT+02:00)
> Saaja: users@camel.apache.org
> Aihe: Re: Simple language starts with ignore case
>
> Hi
>
> No its not possible, we have too many operators already - to add
> starts with ignorecase (would be too verbose and ugly)
>
> You can use reg-exp or you can lower-case/upper-case the value and
> then use starts with in that case only.
>
> On Mon, Nov 13, 2017 at 2:59 PM, Pakarinen, Jari
> <jari.pakari...@orion.fi> wrote:
> > Hi,
> >
> > Would it be possible to have a starts with ignore case (like contains
> ignore case) in the simple language ? Currently it is case sensitive.  Or
> is there a possibility to set the "${header.CamelFileNameOnly} to lower
> case somehow ?
> >
> > .when(simple("${header.CamelFileNameOnly} starts with 'MyFilename'"))
> >
> > Only way I found to circumvent this was to use the contains ignore case
> for now, but it is not quite the same thing:
> >
> > .when(simple("${header.CamelFileNameOnly} ~~ 'MyFilename'"))
> >
> > Thanks!
> > --
> > Jari
> >
> >
> >
> > This e-mail transmission may contain confidential or legally privileged
> information that is intended only for the individual or entity named in the
> e-mail address. If you are not the intended recipient, you are hereby
> notified that any disclosure, copying, distribution, or reliance upon the
> contents of this e-mail is strictly prohibited. If you have received this
> e-mail transmission in error, please reply to the sender, so that they can
> arrange for proper delivery, and then please delete the message from your
> computer systems. Thank you.
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>
>
> This e-mail transmission may contain confidential or legally privileged
> information that is intended only for the individual or entity named in the
> e-mail address. If you are not the intended recipient, you are hereby
> notified that any disclosure, copying, distribution, or reliance upon the
> contents of this e-mail is strictly prohibited. If you have received this
> e-mail transmission in error, please reply to the sender, so that they can
> arrange for proper delivery, and then please delete the message from your
> computer systems. Thank you.
>

Reply via email to