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

Wrong media type of response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.3
    • 3.1, 3.0.5
    • JAX-RS
    • None
    • Windows

    • Unknown

    Description

      Resource class
      public Response getMediaType()

      { MediaType media = MediaType.APPLICATION_ATOM_XML_TYPE; Response response = Response.ok().type(media).build(); return response; }

      get media type from response on client side is null.
      Spec 3.8 Determining the MediaType of Responses
      1. If the method returns an instance of Response whose metadata includes the response media type
      (Mspecified) then set Mselected = Mspecified, finish.

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            nbqyqx@163.com Neal Hu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: