camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Autric <gaut...@redhat.com>
Subject Re: Getting query parameters from jetty and put then in restlet endpoint
Date Thu, 13 Aug 2015 13:06:36 GMT
Hi Arnaud,

Please take a look here https://github.com/apache/camel/blob/master/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletProducer.java#L147

this camel route should work correctly/directly :

from("jetty:http://localhost:8081/myapp/myservice?param1={param1}&param2={param2}")
.to("restlet:http://localhost:20010/services/getInfos?param1={param1}&param2={param2}&restletMethod=get");


Best regards,


Greg AUTRIC                        
JBoss Middleware Consultant

email   : gautric __at__ redhat __dot__ com
twitter : @gautric_io

Red Hat Global Services            
Red Hat France SARL                sit: http://www.redhat.fr
Le Linea, 1 rue du General Leclerc, 92047 Paris La Défense Cedex
Sent from webmail

----- Mail original -----
De: "arnaud" <arnaud.mercier@free.fr>
À: users@camel.apache.org
Envoyé: Mercredi 12 Août 2015 11:40:35
Objet: Getting query parameters from jetty and put then in restlet endpoint


Hello,

I try to get parameters from jetty endpoint to the restlet but it seems that
this is not the right way :

from("jetty:http://localhost:8081/myapp/myservice?param1={param1}&param2={param2}")
.to("restlet:http://localhost:20010/services/getInfos?param1=${in.headers.param1}&param2=${in.headers.param2}&restletMethod=get");

How can I pass my parameters?

Thanks,

Arnaud



--
View this message in context: http://camel.465427.n5.nabble.com/Getting-query-parameters-from-jetty-and-put-then-in-restlet-endpoint-tp5770602.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message