[seam-commits] Seam SVN: r14466 - branches/community/Seam_2_3/jboss-seam-resteasy/src/main/java/org/jboss/seam/resteasy.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Apr 2 09:04:08 EDT 2012


Author: maschmid
Date: 2012-04-02 09:04:07 -0400 (Mon, 02 Apr 2012)
New Revision: 14466

Modified:
   branches/community/Seam_2_3/jboss-seam-resteasy/src/main/java/org/jboss/seam/resteasy/ResourceHome.java
Log:
fix for JBSEAM-4923


Modified: branches/community/Seam_2_3/jboss-seam-resteasy/src/main/java/org/jboss/seam/resteasy/ResourceHome.java
===================================================================
--- branches/community/Seam_2_3/jboss-seam-resteasy/src/main/java/org/jboss/seam/resteasy/ResourceHome.java	2012-04-02 11:25:27 UTC (rev 14465)
+++ branches/community/Seam_2_3/jboss-seam-resteasy/src/main/java/org/jboss/seam/resteasy/ResourceHome.java	2012-04-02 13:04:07 UTC (rev 14466)
@@ -36,12 +36,12 @@
 import javax.ws.rs.Path;
 import javax.ws.rs.core.Context;
 import javax.ws.rs.core.GenericEntity;
+import javax.ws.rs.core.HttpHeaders;
 import javax.ws.rs.core.MediaType;
 import javax.ws.rs.core.Response;
 import javax.ws.rs.core.UriInfo;
 import javax.ws.rs.ext.MessageBodyReader;
 
-import org.jboss.resteasy.core.Headers;
 import org.jboss.resteasy.core.StringParameterInjector;
 import org.jboss.seam.Entity;
 import org.jboss.seam.annotations.Create;
@@ -68,7 +68,7 @@
    @Context
    private UriInfo uriInfo;
    @Context
-   private Headers headers;
+   private HttpHeaders headers;
    @HeaderParam("Content-Type")
    private MediaType requestContentType;
 
@@ -275,7 +275,7 @@
       T entity;
       try
       {
-         entity = reader.readFrom(entityClass, entityClass, entityClass.getAnnotations(), requestContentType, headers, is);
+         entity = reader.readFrom(entityClass, entityClass, entityClass.getAnnotations(), requestContentType, headers.getRequestHeaders(), is);
       }
       catch (Exception e)
       {



More information about the seam-commits mailing list