camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen" ...@silverbullet.dk>
Subject RE: El
Date Fri, 19 Sep 2008 16:45:10 GMT
Hi

Maybe replace is for single char replace like the one on String. Is there a replaceAll method?


Med venlig hilsen
 
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk

-----Original Message-----
From: Vadim Chekan [mailto:kot.begemot@gmail.com] 
Sent: 19. september 2008 18:39
To: camel-user@activemq.apache.org
Subject: Re: El

Yes, looks like only 1st symbol is repalaced:
     <route>
       <from uri="timer://kickoff?period=10000"/>
       <setBody><el>foo foo</el></setBody>
        <setHeader headerName="Body">
          <el>${in.body}</el>
        </setHeader>
        <setBody>
          <el>
            ${in.body.replace('foo','bar')}
          </el>
        </setBody>
       <to uri="mock:Status"/>
     </route>

outputs: boo boo

Vadim.

On Fri, Sep 19, 2008 at 12:11 AM, Claus Ibsen <ci@silverbullet.dk> wrote:
> Hi
>
> Have you tried with something simpler. Replaceing foo -> bar, just to verify that
the ' is not causing trouble.
>
>
> Med venlig hilsen
>
> Claus Ibsen
> ......................................
> Silverbullet
> Skovsgårdsvænget 21
> 8362 Hørning
> Tlf. +45 2962 7576
> Web: www.silverbullet.dk
>
> -----Original Message-----
> From: Vadim Chekan [mailto:kot.begemot@gmail.com]
> Sent: 19. september 2008 02:20
> To: camel-user@activemq.apache.org
> Subject: El
>
> Why this one does not work as expected?
>
>     <route>
>       <from uri="timer://kickoff?period=10000"/>
>       <setBody><el>bla'l</el></setBody>
>        <setHeader headerName="Body">
>          <el>${in.body}</el>
>        </setHeader>
>        <setBody>
>          <el>
>            ${in.body.replace("'","cc")}
>          </el>
>        </setBody>
>       <to uri="mock:Status"/>
>     </route>
>
> I have output "blacl" instead of "blaccl"
>
> --
> From RFC 2631: In ASN.1, EXPLICIT tagging is implicit unless IMPLICIT
> is explicitly specified
>



-- 
>From RFC 2631: In ASN.1, EXPLICIT tagging is implicit unless IMPLICIT
is explicitly specified

Mime
View raw message