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 2013/04/16 15:03:16 UTC
[jira] [Resolved] (CXF-4950) Support 'qs' media type parameters
[ https://issues.apache.org/jira/browse/CXF-4950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin resolved CXF-4950.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.7.5
Assignee: Sergey Beryozkin
> Support 'qs' media type parameters
> ----------------------------------
>
> Key: CXF-4950
> URL: https://issues.apache.org/jira/browse/CXF-4950
> Project: CXF
> Issue Type: Task
> Components: JAX-RS
> Reporter: Sergey Beryozkin
> Assignee: Sergey Beryozkin
> Fix For: 2.8.0, 2.7.5
>
>
> Media type 'qs' parameters can affect the selection algorithm choosing the best method candidate and the response media type, for example, given
> {noformat}
> Accept: application/xml, application/json
> {noformat}
> and
> {code:java}
> @Produces("application/xml;qs=0.8, application/json")
> public Response a() {}
> {code}
> the response media type is "application/json", where as with
> {code:java}
> @Produces("application/json;qs=0.8")
> public Response a() {}
> @Produces("application/xml;qs=0.9")
> public Response b() {}
> {code}
> b() gets selected and the response media type is 'application/xml'
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira