Commits

Anonymous committed d1622b3

- added javadoc
- make handleSpecialParameters(HttpServletRequest, ActionMapping) non-static and protected, such that it is
instance based and could be overriden by subclass, its not being use anywhere besides in this class, so
i gues there's no point making it public static
- make method parseNameAndNamespace(String, ActionMapping) protected instead of 'default' visibility such that
it could be a hook where subclass could override

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2872573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits 3eaac40

Comments (0)

Files changed (1)

File src/java/com/opensymphony/webwork/dispatcher/mapper/DefaultActionMapper.java

  *
  * @author Patrick Lightbody
  * @author tm_jee
+ * @version $Date$ $Id$
  */
 public class DefaultActionMapper implements ActionMapper {
 
         return mapping;
     }
 
-    public static void handleSpecialParameters(HttpServletRequest request, ActionMapping mapping) {
+    /**
+     * Extension hook, that handle special parameters, namely those with prefix
+     * eg. 
+     * <ul>
+     *    <li>action:someAction</li>
+     *    <li>method:someMethod</li>
+     *    <li>redirect:http://www.google.com</li>
+     *    <li>redirect-action:someRedirectAction</li>
+     * </ul>
+     * @param request
+     * @param mapping
+     */
+    protected void handleSpecialParameters(HttpServletRequest request, ActionMapping mapping) {
         // handle special parameter prefixes.
         Map parameterMap = request.getParameterMap();
         for (Iterator iterator = parameterMap.keySet().iterator(); iterator.hasNext();) {
         }
     }
 
-    void parseNameAndNamespace(String uri, ActionMapping mapping) {
+    protected void parseNameAndNamespace(String uri, ActionMapping mapping) {
         String namespace, name;
         int lastSlash = uri.lastIndexOf("/");
         if (lastSlash == -1) {