Output MIME type didnt set correctly when there are multiple values for
@ProduceMime
------------------------------------------------------------------------------------
Key: CXF-1361
URL: https://issues.apache.org/jira/browse/CXF-1361
Project: CXF
Issue Type: Bug
Components: REST
Affects Versions: 2.1
Reporter: Jervis Liu
Assignee: Jervis Liu
As a user reported:
I'm experimenting with the JAX-RS implementation in CXF. I'm trying to create
methods that are able to return content in different formats. The JAX-RS spec
says that any method can declare multiple MIME types that it produces, like:
@ProduceMime({"application/xml", "application/json"})
but when trying this out, I see that the CXF implementation effectively only
allows for a single MIME type declaration. If I declare multiple entries, like
above, strangely the returned MIME type will be application/xml, but the
returned format will be application/json
I wonder if it's possible to make this feature work in CXF as in the spec?
Akos
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.