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 C7B7219F14 for ; Wed, 20 Apr 2016 21:12:56 +0000 (UTC) Received: (qmail 93463 invoked by uid 500); 20 Apr 2016 21:12:56 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 93416 invoked by uid 500); 20 Apr 2016 21:12:56 -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 93405 invoked by uid 99); 20 Apr 2016 21:12:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2016 21:12:55 +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 91231C0319 for ; Wed, 20 Apr 2016 21:12:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.001 X-Spam-Level: ** X-Spam-Status: No, score=2.001 tagged_above=-999 required=6.31 tests=[KAM_BADIPHTTP=2, RCVD_IN_DNSWL_NONE=-0.0001, WEIRD_PORT=0.001] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id vtfRXoui7Kj4 for ; Wed, 20 Apr 2016 21:12:54 +0000 (UTC) Received: from smtp125.ord1c.emailsrvr.com (smtp125.ord1c.emailsrvr.com [108.166.43.125]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id C1C855F256 for ; Wed, 20 Apr 2016 21:12:53 +0000 (UTC) Received: from smtp16.relay.ord1c.emailsrvr.com (localhost.localdomain [127.0.0.1]) by smtp16.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id D2E4018031C for ; Wed, 20 Apr 2016 17:12:47 -0400 (EDT) Received: from smtp192.mex05.mlsrvr.com (unknown [184.106.31.85]) by smtp16.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTPS id CA971180203 for ; Wed, 20 Apr 2016 17:12:47 -0400 (EDT) X-Sender-Id: shuston@riverace.com Received: from smtp192.mex05.mlsrvr.com ([UNAVAILABLE]. [184.106.31.85]) (using TLSv1 with cipher AES256-SHA) by 0.0.0.0:25 (trex/5.5.4); Wed, 20 Apr 2016 17:12:47 -0400 Received: from ORD2MBX01E.mex05.mlsrvr.com ([fe80::7dfb:adc:f2b:3134]) by ORD2HUB01.mex05.mlsrvr.com ([fe80::109c:386a:1302:c99%20]) with mapi id 14.03.0279.002; Wed, 20 Apr 2016 16:12:47 -0500 From: Steve Huston To: "users@camel.apache.org" Subject: Not seeing query params on REST DSL Thread-Topic: Not seeing query params on REST DSL Thread-Index: AdGbSJxGlYuxi/WeRhuCuHQUBohw8A== Date: Wed, 20 Apr 2016 21:12:46 +0000 Message-ID: <00BCD2BEF4977149A7C7303B4BAEBBE622075A8F@ORD2MBX01E.mex05.mlsrvr.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [24.62.20.238] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 I am using the REST DSL in a Camel SCR unit test. I have a route (being tes= ted) that will initiate a http request at this URL: @Test public void testRoutes() throws Exception { context.addRoutes(new RouteBuilder() { @Override public void configure() throws Exception { restConfiguration().component("restlet").port(9000); rest("/asset") .put("/{addr}/pong") .param().name("id").type(RestParamType.quer= y).endParam() .to("log:steve?showAll=3Dtrue") .to("mock:result"); } }); MockEndpoint resultEndpoint =3D context.getEndpoint("mock:result", = MockEndpoint.class); resultEndpoint.expectedMessageCount(1); resultEndpoint.message(0).header("addr").isEqualTo("my_test_value")= ; resultEndpoint.message(0).header("id").isEqualTo("abcd1234"); At run time, the request does arrive as a PUT to http://127.0.0.1:9000/asse= t/my_test_value/pong?id=3Dabcd1234 However, I am only getting the "addr" path parameter in the header. The que= ry param "id" is missing. Am I doing something wrong on the definition? I pieced together the way to = do it from disparate tidbits on the net. Thanks, -Steve