Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 37968 invoked from network); 30 Sep 2008 12:24:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Sep 2008 12:24:39 -0000 Received: (qmail 40158 invoked by uid 500); 30 Sep 2008 12:24:36 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 39941 invoked by uid 500); 30 Sep 2008 12:24:35 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 39930 invoked by uid 99); 30 Sep 2008 12:24:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Sep 2008 05:24:35 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sergey.beryozkin@iona.com designates 12.170.54.180 as permitted sender) Received: from [12.170.54.180] (HELO amer-mx1.iona.com) (12.170.54.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Sep 2008 12:23:34 +0000 X-IronPort-AV: E=Sophos;i="4.33,338,1220241600"; d="scan'208";a="15305719" Received: from amer-ems1.ionaglobal.com ([10.65.6.25]) by amer-mx1.iona.com with ESMTP; 30 Sep 2008 08:23:08 -0400 Received: from sberyoz ([10.5.2.224]) by amer-ems1.IONAGLOBAL.COM with Microsoft SMTPSVC(6.0.3790.1830); Tue, 30 Sep 2008 08:23:07 -0400 Message-ID: <010901c922f7$4b74ebb0$e002050a@IONAGLOBAL.COM> From: "Sergey Beryozkin" To: References: Subject: Re: Is there a @PostParam annotation ? Date: Tue, 30 Sep 2008 13:23:06 +0100 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-OriginalArrivalTime: 30 Sep 2008 12:23:07.0317 (UTC) FILETIME=[4B592650:01C922F7] Content-Type: text/plain; format="flowed"; charset="iso-8859-1"; reply-type="original" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi JAX-RS 0.9 introduces @FormParam - it is probably what you're after - CXF J= AX-RS does not support it yet - but the RI (Jersey) does. We'll support it too. In meantime, you may want to try experimenting with @POST public void addUser(MultivaluedMap usersInfo) { } This should work fine... Cheers, Sergey > Hi all > I am new to JSR-133 > I feel comfortable to this restful style programming. > But I have a question. > I cannot find a @PostParam or something like that annotation. > I need this annotation for something like this : >=20 > @POST > @Path("/addUser") > public void addUser(@PostParam("name") String name , > @PostParam("year") int year) > {...} >=20 > I feel it is very intuitive , but I cannot find such annotations , why ? > Or did I miss anything ? ---------------------------- IONA Technologies PLC (registered in Ireland) Registered Number: 171387 Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland