Re: route from http to file, with Java DSL, howto?

2010-03-23 Thread Kameltreiber
Claus Ibsen-2 wrote: > > On Tue, Mar 23, 2010 at 8:16 AM, Kameltreiber > wrote: >> >> Hi, >> i just try to write a xml result from a http request to a file. >> I'd like to use Java DSL >> at the moment it looks like this >> >

route from http to file, with Java DSL, howto?

2010-03-23 Thread Kameltreiber
Hi, i just try to write a xml result from a http request to a file. I'd like to use Java DSL at the moment it looks like this from("http://example.com/";) .setHeader(Exchange.FILE_NAME, constant("report.xml")) .to("file:target/reports"); I alreday checked the result, and there i