camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vero Kato <vero.ka...@gmail.com>
Subject Re: extracting HTTP query key values with Camel Rest and Jetty
Date Tue, 22 Dec 2015 11:45:37 GMT
Thanks, but we currently use version 2.14.1 of apache camel and it doesn't
support it. are there any other options? in the worst case how can we
extract the query string to parse it?

On Tue, Dec 8, 2015 at 4:41 PM, Claus Ibsen <claus.ibsen@gmail.com> wrote:

> Ah see this FAQ
> http://camel.apache.org/faq
>
> If you are on a new camel version, use the new toD - if not use
> receipientList as in the FAQ
>
> On Tue, Dec 8, 2015 at 3:38 PM, Vero Kato <vero.katos@gmail.com> wrote:
> > hi, sorry, I didn't get any answer about this. can someone from the
> Apache
> > Camel devs reply.
> >
> > On Sun, Dec 6, 2015 at 12:03 PM, Vero Kato <vero.katos@gmail.com> wrote:
> >
> >> hi, I'm using Apache Camel with Camel REST and Camel Jetty.
> >>
> >> I don't have any problems when we expose our Rest API like this:
> >> localhost:8080/rest/OurService/Value1/Value2
> >>
> >> but I can't understand how I can extract data from this URL
> >>
> >> localhost:8080/rest/OurService?key1=Value1&ke2=Value2
> >>
> >> i.e. I need something like this, but can't make it work:
> >>
> >> rest("/rest/OurService/").description("Our Service Description")
> >>                  .produces("application/json")
> >> .outType(LocalNetpositionQueryService.class)
> >>
> >>  .to("bean:ourLocalService?method=retrieveData(${header.key1},
> >> ${header.key2})");
> >>
> >> Can you please suggest how to extract nicely with Camel Rest + Camel
> Jetty
> >> http query string key-value pairs?
> >>
> >> Thanks.
> >> Vero
> >>
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>

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