Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C658610FF6 for ; Tue, 8 Dec 2015 14:47:42 +0000 (UTC) Received: (qmail 60122 invoked by uid 500); 8 Dec 2015 14:47:31 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 60069 invoked by uid 500); 8 Dec 2015 14:47:31 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 60057 invoked by uid 99); 8 Dec 2015 14:47:31 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2015 14:47:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id B2837C0E02 for ; Tue, 8 Dec 2015 14:47:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.099 X-Spam-Level: X-Spam-Status: No, score=-0.099 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Rd7beHFHqUIk for ; Tue, 8 Dec 2015 14:47:18 +0000 (UTC) Received: from mail-io0-f177.google.com (mail-io0-f177.google.com [209.85.223.177]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id ECF5242ADE for ; Tue, 8 Dec 2015 14:47:17 +0000 (UTC) Received: by iouu10 with SMTP id u10so26737999iou.0 for ; Tue, 08 Dec 2015 06:42:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=XN22+h28eeIPrUzvwtXj/vTcPojQk5DGIyS9oTiznIk=; b=017bKGl2gDXO6fte9LH+oP/++17MflSjmpqNtaBWpJ1Iw731CAtq4qgyVnSv6fb5r/ MPqo25j3g/NQlhcKutK0QU/ci7EVmqOJTuRoXRlmwdw7fd7g2x/IwwXeOF9f7syKDcp/ aYBfSLYYd+2Ug8jR4O2SAjgxDR7JvJp6/TwoBiuYY5mTiFP/nsYC6wX8avDixxYXSgsh 0THU9figLyVD52Rf50OFRyrbS3TmOTLkFVAg/ld01L2u16JGhUwQx0FChvTj99c63Gdi yWgeZ7P/e4izyh8tAa07g5sMc8QS+fAqOTkK6txQHkSdoCMYY1huDCxtitkpSMyLpvp9 29RQ== X-Received: by 10.107.168.97 with SMTP id r94mr187646ioe.181.1449585730500; Tue, 08 Dec 2015 06:42:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.0.149 with HTTP; Tue, 8 Dec 2015 06:41:51 -0800 (PST) In-Reply-To: References: From: Claus Ibsen Date: Tue, 8 Dec 2015 15:41:51 +0100 Message-ID: Subject: Re: extracting HTTP query key values with Camel Rest and Jetty To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 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 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 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