camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicky Sandhu <nickysan...@hotmail.com>
Subject Consuming from a http endpoint
Date Wed, 22 Aug 2007 21:34:46 GMT

HttpComponent creates an embedded jetty server. This seems to be different
from the stated aim of the component which is to represent http endpoints
(not "host" them). Am I missing the point?

Consuming external http resources is not possible as the
createMethod(Exchange exchange) method in HttpProducer can never result in a
return of GetMethod(uri).

So going to back to the route I have to represent www.google.com as a
endpoint and then consume from it, it should send back the contents of the
get request to http://www.google.com. If I produce to it, it should be able
send a post request to the url with the contents of the message... OR is
that too restful and needs another component ?

from("http://www.google.com").to("direct:a")

or is there some other component to achieve the above?

-- 
View this message in context: http://www.nabble.com/Consuming-from-a-http-endpoint-tf4314211s22882.html#a12283406
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message