[seam-commits] Seam SVN: r8605 - trunk/src/main/org/jboss/seam/servlet.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Aug 6 09:41:35 EDT 2008


Author: christian.bauer at jboss.com
Date: 2008-08-06 09:41:35 -0400 (Wed, 06 Aug 2008)
New Revision: 8605

Modified:
   trunk/src/main/org/jboss/seam/servlet/SeamResourceServlet.java
Log:
JBSEAM-3228, SeamResourceServlet should service all types of HTTP requests

Modified: trunk/src/main/org/jboss/seam/servlet/SeamResourceServlet.java
===================================================================
--- trunk/src/main/org/jboss/seam/servlet/SeamResourceServlet.java	2008-08-06 13:37:19 UTC (rev 8604)
+++ trunk/src/main/org/jboss/seam/servlet/SeamResourceServlet.java	2008-08-06 13:41:35 UTC (rev 8605)
@@ -17,7 +17,12 @@
 import org.jboss.seam.web.AbstractResource;
 
 /**
- * Serves extra resources such as Javascript, CSS, Images
+ * Routes all types of HTTP requests to implementors of AbstractResource.
+ * <p>
+ * This servlet is optional in a Seam application but required for certain features, such as
+ * <tt>&lt;s:graphicImage/&gt;</tt>, RichFaces resources, and REST integration. It is typically
+ * mapped in <tt>web.xml</tt> with the <tt>/seam/resource</tt> URL pattern.
+ * </p>
  * 
  * @author Shane Bryzak
  */
@@ -58,7 +63,7 @@
    }
 
    @Override
-   public void doGet(HttpServletRequest request, HttpServletResponse response)
+   public void service(HttpServletRequest request, HttpServletResponse response)
             throws ServletException, IOException
    {
       String prefix = request.getContextPath() + request.getServletPath();
@@ -85,10 +90,4 @@
       }
    }
 
-   @Override
-   public void doPost(HttpServletRequest request, HttpServletResponse response)
-            throws ServletException, IOException
-   {
-      doGet(request, response);
-   }
 }




More information about the seam-commits mailing list