You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by tm...@apache.org on 2006/11/05 16:56:29 UTC
svn commit: r471452 - in
/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper:
Restful2ActionMapper.java RestfulActionMapper.java
Author: tmjee
Date: Sun Nov 5 07:56:29 2006
New Revision: 471452
URL: http://svn.apache.org/viewvc?view=rev&rev=471452
Log:
WW-1483
- added snippet to RestfulActionMapper and Restful2ActionMapper so that we could doc them in confluence
Modified:
struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/Restful2ActionMapper.java
struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/RestfulActionMapper.java
Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/Restful2ActionMapper.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/Restful2ActionMapper.java?view=diff&rev=471452&r1=471451&r2=471452
==============================================================================
--- struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/Restful2ActionMapper.java (original)
+++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/Restful2ActionMapper.java Sun Nov 5 07:56:29 2006
@@ -28,6 +28,8 @@
import org.apache.commons.logging.LogFactory;
/**
+ * <!-- START SNIPPET: description -->
+ *
* Improved restful action mapper that adds several ReST-style improvements to
* action mapping, but supports fully-customized URL's via XML. The two primary
* ReST enhancements are:
@@ -72,6 +74,8 @@
* http://ryandaigle.com/articles/2006/08/01/whats-new-in-edge-rails-simply-restful-support-and-how-to-use-it
* </a>
* </p>
+ *
+ * <!-- END SNIPPET: description -->
*/
public class Restful2ActionMapper extends DefaultActionMapper {
Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/RestfulActionMapper.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/RestfulActionMapper.java?view=diff&rev=471452&r1=471451&r2=471452
==============================================================================
--- struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/RestfulActionMapper.java (original)
+++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/RestfulActionMapper.java Sun Nov 5 07:56:29 2006
@@ -33,6 +33,8 @@
/**
+ * <!-- START SNIPPET: description -->
+ *
* A custom action mapper using the following format:
* <p/>
* <p/>
@@ -53,6 +55,8 @@
* <p/>
* Your action just needs a setArticleId() method, and requests such as /article/1, /article/2, etc will all map
* to that URL pattern.
+ *
+ * <!-- END SNIPPET: description -->
*
*/
public class RestfulActionMapper implements ActionMapper {