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.