camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schneider <ch...@die-schneider.net>
Subject Re: from http://... to file://...
Date Wed, 11 Jun 2008 06:02:35 GMT
Ok ... That means if I want to fetch an external page 
I have to use the http component.

Claus posted this example:

from("timer://foo?fixedRate=true&delay=0&period=10000").to("jetty:http://www.google.com").setHeader(FileComponent.HEADER_FILE_NAME,
"message.txt").to("file:target/hello");

Is it right that this should be like this:

from("timer://foo?fixedRate=true&delay=0&period=10000").to("http://www.google.com").setHeader(FileComponent.HEADER_FILE_NAME,
"message.txt").to("file:target/hello");


Greetings

Christian

James Strachan schrieb:
>
> They may be badly named; but the jetty component is all about
> implementing a HTTP server using a Camel route to implement it. The
> http component is all about using a HTTP client (commons-httpclient)
> to invoke remote web servers in a Camel route.
>
>   


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message