cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-5771) Limitation of handling bean params inside ClientProxyImpl
Date Tue, 03 Jun 2014 10:40:02 GMT

    [ https://issues.apache.org/jira/browse/CXF-5771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14016376#comment-14016376
] 

Sergey Beryozkin commented on CXF-5771:
---------------------------------------

Hi, is there a good technical reason why a newly created BeanParam bean can not have setters/getters
for working with the properties ?

> Limitation of handling bean params inside ClientProxyImpl
> ---------------------------------------------------------
>
>                 Key: CXF-5771
>                 URL: https://issues.apache.org/jira/browse/CXF-5771
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.0.0
>            Reporter: MichaƂ P
>            Priority: Minor
>
> Method ClientProxyImpl#getValuesFromBeanParam is limited only to use getters/setters,
Annotations placed on fields are ignored.
> Works:
> public class Bean {
>   private String value;
>   
>   @HeaderParam("X-VALUE")
>   public void setValue(String value) { this.value = value; }
>   public String getValue() { return value; }
> }
> Doesn't work:
> public class Bean {
>   @HeaderParam("X-VALUE")
>   private String value;
>   // getters/setters
> }
> Resolution would be to search for annotations also on fields not only methods.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message