|
From: Rafael P. N. <raf...@me...> - 2008-07-28 14:34:44
|
I was thinking about something that I cannot found in any REST
framework(Restlet, Jersey, CXF...).
I would like to see something like the standard action of
JSP(<jsp:setProperty property="*">) when I found request parameters that
matches with my object attributes I inject them.
Something like:
@POST
public void someMethod(Person person){...}
And in the client:
POST Body
name=John
age=25
gender=M
addres=blablabla
And I inject them with:
person.setName("John")
person.setAge(25)
person.setGender('M')
person.setAddress("blablabla")
And can see some problems with that, but not impossible to do.
Is this possible? Or is it just a nonsense dream?
Rafael
|