cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dhiraj Bokde (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-6287) JAX-RS client does not handle Enum query params
Date Tue, 10 Mar 2015 18:51:38 GMT

     [ https://issues.apache.org/jira/browse/CXF-6287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dhiraj Bokde updated CXF-6287:
------------------------------
    Description: 
A JAX-RS endpoints that uses an JAXB enumeration as a parameter marshals it using {{toString()}}
instead of its {{public String value()} method. 
This results in invalid values being marshaled for values, such as {{STATUS_UPDATE}} instead
of {{status-update}}. 
This requires writing a custom enumeration ParamConverterProvider. Since all JAXB enumerations
follow standard method patterns for marshaling {{public String value()}} and unmarshaling
{{public static T fromValue(String value)}}, they should be handled by CXF by default. 

  was:
A JAX-RS endpoints that uses an JAXB enumeration as a parameter marshals it using {{toString()}}
instead of its {{public String value()} method. 
This results in invalid values being marshaled for values, such as {{STATUS_UPDATE}} instead
of {{status-update}}. 
This requires writing a custom enumeration ParamConverterProvider. Since all JAXB enumerations
follow standard method patterns for marshaling {{public String value()}} and unmarshaling
{{public static fromValue(String value)}}, they should be handled by CXF by default. 


> JAX-RS client does not handle Enum query params
> -----------------------------------------------
>
>                 Key: CXF-6287
>                 URL: https://issues.apache.org/jira/browse/CXF-6287
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.0.4
>            Reporter: Dhiraj Bokde
>
> A JAX-RS endpoints that uses an JAXB enumeration as a parameter marshals it using {{toString()}}
instead of its {{public String value()} method. 
> This results in invalid values being marshaled for values, such as {{STATUS_UPDATE}}
instead of {{status-update}}. 
> This requires writing a custom enumeration ParamConverterProvider. Since all JAXB enumerations
follow standard method patterns for marshaling {{public String value()}} and unmarshaling
{{public static T fromValue(String value)}}, they should be handled by CXF by default. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message