[seam-commits] Seam SVN: r10547 - branches/community/Seam_2_1/src/resteasy/org/jboss/seam/resteasy.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Apr 21 08:12:54 EDT 2009


Author: jharting
Date: 2009-04-21 08:12:54 -0400 (Tue, 21 Apr 2009)
New Revision: 10547

Modified:
   branches/community/Seam_2_1/src/resteasy/org/jboss/seam/resteasy/AbstractResource.java
Log:
JBSEAM-4132

Modified: branches/community/Seam_2_1/src/resteasy/org/jboss/seam/resteasy/AbstractResource.java
===================================================================
--- branches/community/Seam_2_1/src/resteasy/org/jboss/seam/resteasy/AbstractResource.java	2009-04-21 10:10:03 UTC (rev 10546)
+++ branches/community/Seam_2_1/src/resteasy/org/jboss/seam/resteasy/AbstractResource.java	2009-04-21 12:12:54 UTC (rev 10547)
@@ -18,7 +18,7 @@
  * License along with this software; if not, write to the Free
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */ 
+ */
 package org.jboss.seam.resteasy;
 
 import java.lang.reflect.ParameterizedType;
@@ -52,8 +52,13 @@
       mediaTypes = new MediaType[] { MediaType.APPLICATION_XML_TYPE };
    }
 
-   public MediaType[] getMediaTypes()
+   public String[] getMediaTypes()
    {
+      String[] mediaTypes = new String[this.mediaTypes.length];
+      for (int i = 0; i < mediaTypes.length; i++)
+      {
+         mediaTypes[i] = this.mediaTypes[i].toString();
+      }
       return mediaTypes;
    }
 
@@ -66,11 +71,6 @@
       }
    }
 
-   public void setMediaTypes(MediaType[] mediaTypes)
-   {
-      this.mediaTypes = mediaTypes;
-   }
-
    public void setEntityClass(Class entityClass)
    {
       this.entityClass = entityClass;




More information about the seam-commits mailing list