Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4950

Support 'qs' media type parameters

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.7.5, 3.0.0-milestone1
    • JAX-RS
    • None
    • Unknown

    Description

      Media type 'qs' parameters can affect the selection algorithm choosing the best method candidate and the response media type, for example, given

      Accept: application/xml, application/json
      

      and

      @Produces("application/xml;qs=0.8, application/json")
      public Response a() {}
      

      the response media type is "application/json", where as with

      @Produces("application/json;qs=0.8")
      public Response a() {}
      
      @Produces("application/xml;qs=0.9")
      public Response b() {}
      
      

      b() gets selected and the response media type is 'application/xml'

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            sergey_beryozkin Sergey Beryozkin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: