You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2011/07/12 19:16:59 UTC
[jira] [Commented] (CXF-3631) WADL Generator ignores @PathParams
mapped on class fields
[ https://issues.apache.org/jira/browse/CXF-3631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13064013#comment-13064013 ]
Sergey Beryozkin commented on CXF-3631:
---------------------------------------
private @PathParam("id") int id;
or
@PathParam("id")
public void setId(int id) {
}
(as well for matrix, query, header)
should be recognized by the generator now
> WADL Generator ignores @PathParams mapped on class fields
> ---------------------------------------------------------
>
> Key: CXF-3631
> URL: https://issues.apache.org/jira/browse/CXF-3631
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 2.4.1
> Reporter: Raphael Vullriede
> Labels: WADL
>
> I have a request scoped resource via a RequestScopeResourceFactory and <aop:scoped-proxy /> as described on http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-Lifecyclemanagement to be able to inject @PathParams on class fields. This works as expected however the mapped parameters do not show up in the auto-generated WADL. After a quick look in the source code of org.apache.cxf.jaxrs.model.wadl.WADLGenerator it seems it is only looking for method-level parameters.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira