cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1053123 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/XMLBeansElementProvider.java
Date Mon, 27 Dec 2010 18:20:56 GMT
Author: sergeyb
Date: Mon Dec 27 18:20:56 2010
New Revision: 1053123

URL: http://svn.apache.org/viewvc?rev=1053123&view=rev
Log:
[CXF-3198] Applying a patch on behalf of Rahul Somasunderam

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/XMLBeansElementProvider.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/XMLBeansElementProvider.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/XMLBeansElementProvider.java?rev=1053123&r1=1053122&r2=1053123&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/XMLBeansElementProvider.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/XMLBeansElementProvider.java
Mon Dec 27 18:20:56 2010
@@ -44,10 +44,11 @@ import org.apache.xmlbeans.XmlObject;
 /**
  * Provider for XMLBeans data objects.
  */
-@Produces("application/xml")
-@Consumes("application/xml")
+@Produces({"application/xml", "application/*+xml", "text/xml" })
+@Consumes({"application/xml", "application/*+xml", "text/xml" })
 @Provider
-public class XMLBeansElementProvider implements MessageBodyReader<XmlObject>, MessageBodyWriter<XmlObject>
{
+public class XMLBeansElementProvider extends AbstractConfigurableProvider 
+    implements MessageBodyReader<XmlObject>, MessageBodyWriter<XmlObject> {
 
     /** {@inheritDoc} */
     public XmlObject readFrom(Class<XmlObject> type, Type genericType, 



Mime
View raw message