camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Consuming from a http endpoint
Date Fri, 24 Aug 2007 09:24:46 GMT
On 8/24/07, James Strachan <james.strachan@gmail.com> wrote:
> On 8/23/07, Nicky Sandhu <nickysandhu@hotmail.com> wrote:
> > James.Strachan wrote:
> > > Another option is to provide some default HTTP operation on the
> > > endpoint as configuration; or as a header/property on the exchange
> > > maybe?
> > >
> > Not sure how you would accomplish this as http:// uri shares the same syntax
> > as URI. E.g. how would you know that
> > http://myurl/myaction?myparam1=x&http_comp_param1=y , the url runs from
> > http://myurl/myaction?myparam1=x and the second param is intended for the
> > http component.
> >
> >
> > This is I guess a limitation of specifying everything on the URI ...
>
> Yeah - thats a great point. For HTTP I guess the query parameters
> should remain on the underlying URI & be part of the HTTP URL.

FWIW you could do something like...

from("timer:foo?period=5000").
  setHeader("org.apache.camel.http.method", "GET").
  to("http://www.google.com", "direct:a");

i.e. customize the message exchange in the DSL

-- 
James
-------
http://macstrac.blogspot.com/

Mime
View raw message