[
https://issues.apache.org/jira/browse/CXF-1361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jervis Liu resolved CXF-1361.
-----------------------------
Resolution: Fixed
Fix Version/s: 2.1
> 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
> Fix For: 2.1
>
>
> 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.