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/08 11:21:16 UTC

[jira] [Created] (CXF-4950) Support 'qs' media type parameters

Sergey Beryozkin created CXF-4950:
-------------------------------------

             Summary: 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
             Fix For: 2.8.0


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