Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 88932 invoked from network); 20 Nov 2009 21:30:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Nov 2009 21:30:00 -0000 Received: (qmail 36646 invoked by uid 500); 20 Nov 2009 21:29:59 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 36566 invoked by uid 500); 20 Nov 2009 21:29:58 -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 36556 invoked by uid 99); 20 Nov 2009 21:29:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Nov 2009 21:29:58 +0000 X-ASF-Spam-Status: No, hits=-0.3 required=5.0 tests=BAYES_00,FORGED_YAHOO_RCVD X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Nov 2009 21:29:56 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NBb2t-0008Jv-Nm for users@cxf.apache.org; Fri, 20 Nov 2009 13:29:35 -0800 Message-ID: <26450359.post@talk.nabble.com> Date: Fri, 20 Nov 2009 13:29:35 -0800 (PST) From: Simona Afifi To: users@cxf.apache.org Subject: RE: How to specify QueryParam name in a Java object being passed in? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: simonaafifi@yahoo.com References: <26443622.post@talk.nabble.com> Sorry, i need to clarify, i need the user to pass in ?fn=bar and ln=foo and not just sure how to allow him to pass fn instead of firstName as the query param name. Thanks, Sergey Beryozkin-2 wrote: > > Hi > > You probably need to do > > ?fistName=bar&lastName=foo > > And these (query) firstName & lastName properties will have bar and foo > values injected into corresponding Name fields, possibly with the help > of setters such as setFirstName, etc > > Hope it helps, Sergey > > -----Original Message----- > From: Simona Afifi [mailto:simonaafifi@yahoo.com] > Sent: 20 November 2009 18:40 > To: users@cxf.apache.org > Subject: How to specify QueryParam name in a Java object being passed > in? > > > I have a webservice method that takes in a java object e.g. > public String HelloThere(@QueryParam("")Name name){ > ...} > > I would like to specify the name of the field to be display in the Name > object, how can i do that? > Class Name{ > String firstName; //I want the user to pass it as fn > String lastName; //I want the user to pass it as ln > > ... > } > > Any help, please? > -- > View this message in context: > http://old.nabble.com/How-to-specify-QueryParam-name-in-a-Java-object-be > ing-passed-in--tp26443622p26443622.html > Sent from the cxf-user mailing list archive at Nabble.com. > > > -- View this message in context: http://old.nabble.com/How-to-specify-QueryParam-name-in-a-Java-object-being-passed-in--tp26443622p26450359.html Sent from the cxf-user mailing list archive at Nabble.com.