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] [Resolved] (CXF-4950) Support 'qs' media type parameters
Date Tue, 16 Apr 2013 13:03:16 GMT

     [ 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

Mime
View raw message