So, for ex, you have the Name class with setFirstName and setLastName
methods, but would like to have
?fn=bar&ln=foo
?
I can only think of registering a custom RequestHandler filter which
will replace a query string like
?fn=bar
with
?firstName=bar
for the QueryParam("") to be able to inject...
Cheers, Sergey
-----Original Message-----
From: Simona Afifi [mailto:[email protected]]
Sent: 20 November 2009 21:30
To: [email protected]
Subject: RE: How to specify QueryParam name in a Java object being
passed in?
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:[email protected]]
> Sent: 20 November 2009 18:40
> To: [email protected]
> 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-be
ing-passed-in--tp26443622p26450359.html
Sent from the cxf-user mailing list archive at Nabble.com.