cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simona Afifi <simonaaf...@yahoo.com>
Subject RE: How to specify QueryParam name in a Java object being passed in?
Date Fri, 20 Nov 2009 21:29:35 GMT

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.


Mime
View raw message