Hi Charles
I agree, would be worth listing explicitly the types which are supported out of
the box.
I believe the only media types which JAXRS requires to support are
1. application/xml, application/*+xml and text/xml assuming JAXB or JAXP Source
is used
2. application/octet-stream for types like InputStream
3. text/plain for String
Probably all the JAXRS implementations support application/json, in CXF case it
is a JAXB-based Jettison provider which does it.
Users can register custom providers for handling application/xml, application/json, etc (ex, Jackson for JSON, XmlBeans or Aegis for
XML, etc).
CXF ships providers for handling application/atom+xml, multipart/*, as well as providers such as XSLTJaxbProvider and
RequestDispatchProvider which facilitate the creation of xml or html based data. XSLTJaxbProvider alone can be used to produce any
type of format...though it's obviously restricted to consuming xml-based data only
Hope it helps, Sergey
Hi,
Is there somewhere a document describing which mime-type have been
implemented by default in CXF for JAX-RS ?
ex : application/xml, application/xhtml+xml, application/json, ...
Regards,
Charles
-----
Charles Moulliard
SOA Architect
My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
--
View this message in context:
http://old.nabble.com/%40Produce---MIME-TYPE-implemented-in-CXF-JAXRS-tp26541657p26541657.html
Sent from the cxf-user mailing list archive at Nabble.com.