On 2/13/2014 9:42 AM, Sergey Beryozkin wrote:
> Hi,
>
> I've got a question related to BeanParam but I think it has a wider scope.
>
> Suppose we a have a per-request resource,
>
> public class Resource {
>
> @QueryParam("the_id")
> public void setId(String id) {...}
>
> }
>
> Right now CXF expects that the property name, translated to the
> lower-case, should match to the HTTP parameter name, in this case we
> have "the_id" vs "id", no match, no injection
>
> Is it correct ?
>
No. There is no correlation between the property name and the
@QueryParam annotation. Same goes for method params.
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com