I would like to leverage the CXF extension for parameter injection into a
bean, however my bean structure is more than 1 level deep. Take the
following example:

class Name
{
    String first;
    String last;
}

class Address
{
    String city;
    String state;
}

class Person
{
    Name legalName;
    Address homeAddr;
    String race;
    String sex;
    Date birthDate;
}

class MyService
{
    @GET
    @Path("/getPerson")
    Person getPerson(@QueryParam("") Person person);
}

I would like to be able to pass something like:

/getPerson?sex=M&legalName.first=John&legalName.last=Doe&homeAddr.city=Reno&homeAddr.state=NV

This example is simplified somewhat, in a real world scenario there would be
many more fields and subfields, making it impractical to cover all
combinations with path or named parameters. Does this capability already
exist and I'm just not finding it, or would this be a useful feature that
the product might benefit from?

Any suggestions or feedback would be greatly appreciated.

Thanks,
Craig M.
-- 
View this message in context: 
http://www.nabble.com/-JAX-RS--Nested-parameter-injection-into-a-bean-tp22797243p22797243.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to