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: conserve output filename
Date Wed, 24 Apr 2013 14:04:30 GMT
Hi

See this FAQ
http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html

On Wed, Apr 24, 2013 at 3:23 PM, Bovas <bovas.thao@gmail.com> wrote:
> Hi,
>
> I'm new. I have a question. How can I conserve the names and extension of
> inputfile? Because when I modify each files of my folder, in output the
> names and extension are not the same (ID-1546...).
>
> I use Apache Camel 2.11, language : Groovy.
>
> my source code :
>
> context.addRoutes(new RouteBuilder(){
>         def void configure(){
>
>                 from("file://directory?noop=true")
>                 .process(new Processor(){
>                                 public void process(Exchange exchange){
>                                         String body = exchange.getIn().getBody(String.class)
>                                         body = body + " Hello World"
>                                         exchange.getOut().setBody(body)
>                                 }
>                 })
>                 .to("file://directory")
>
>         }
> })
>
> I used fileName but it is only for 1 file. is there a uri option that it
> does that I ask, or I need to use a pattern?
>
> Thanks
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/conserve-output-filename-tp5731440.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message