[
https://issues.apache.org/jira/browse/CXF-5644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13951797#comment-13951797
]
Vjacheslav Borisov commented on CXF-5644:
-----------------------------------------
My scenario is to enable server/client side transofrmation based on negotiation
of resulting mime-type based on Accept: header
I am trying to do server-side tranormation for clients who cannot do this by
self.
But to do this i need to interfere resulting mime-type negotiation mechanism.
(This scenario is working in our php applications. And becouse we are making
transition to java, I trying to repeat this logic here.)
Please decide is it interesting or not.
What we have now:
In current realisation (trunk cxf version), server-side tranformation can
be 1) forced or 2) applied based on negotiation of resulting mime-type
If parameter mimeTypes is empty, server-side transformation is applied
uncoditionally (forced)
If it is not empty, it lists mime-types, for which it applies, and all
other types served as raw xml (without <?xml-stylesheet PI.)
So I need (in my scenario) JAXBElementProvider should add <?xml-stylesheet PI
Also I need to make raw xml higher precedence over server-side trasformed
application/xhtml+xml
I tryed
@Produces({"text/xml","application/xml", "application/xhtml+xml; qs=0.1"})
But with Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 (firefox)
It serves application/xhtml+xml, not application/xml
> Introduce XSLTTransform annotation to support server-side transformations
> -------------------------------------------------------------------------
>
> Key: CXF-5644
> URL: https://issues.apache.org/jira/browse/CXF-5644
> Project: CXF
> Issue Type: Improvement
> Components: JAX-RS
> Reporter: Sergey Beryozkin
> Priority: Minor
>
--
This message was sent by Atlassian JIRA
(v6.2#6252)