shiro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jha...@apache.org
Subject svn commit: r749162 - in /incubator/jsecurity/import/trunk/src/org/jsecurity/web/filter: PathConfigProcessor.java PathMatchingFilter.java
Date Mon, 02 Mar 2009 03:25:25 GMT
Author: jhaile
Date: Mon Mar  2 03:25:25 2009
New Revision: 749162

URL: http://svn.apache.org/viewvc?rev=749162&view=rev
Log:
Implemented change suggested by JSEC-61

Modified:
    incubator/jsecurity/import/trunk/src/org/jsecurity/web/filter/PathConfigProcessor.java
    incubator/jsecurity/import/trunk/src/org/jsecurity/web/filter/PathMatchingFilter.java

Modified: incubator/jsecurity/import/trunk/src/org/jsecurity/web/filter/PathConfigProcessor.java
URL: http://svn.apache.org/viewvc/incubator/jsecurity/import/trunk/src/org/jsecurity/web/filter/PathConfigProcessor.java?rev=749162&r1=749161&r2=749162&view=diff
==============================================================================
--- incubator/jsecurity/import/trunk/src/org/jsecurity/web/filter/PathConfigProcessor.java
(original)
+++ incubator/jsecurity/import/trunk/src/org/jsecurity/web/filter/PathConfigProcessor.java
Mon Mar  2 03:25:25 2009
@@ -18,6 +18,8 @@
  */
 package org.jsecurity.web.filter;
 
+import javax.servlet.Filter;
+
 /**
  * A PathConfigProcessor processes configuration entries on a per path (per url) basis.
  *
@@ -28,5 +30,5 @@
 
     //TODO - complete JavaDoc
 
-    void processPathConfig(String path, String config);
+    Filter processPathConfig(String path, String config);
 }

Modified: incubator/jsecurity/import/trunk/src/org/jsecurity/web/filter/PathMatchingFilter.java
URL: http://svn.apache.org/viewvc/incubator/jsecurity/import/trunk/src/org/jsecurity/web/filter/PathMatchingFilter.java?rev=749162&r1=749161&r2=749162&view=diff
==============================================================================
--- incubator/jsecurity/import/trunk/src/org/jsecurity/web/filter/PathMatchingFilter.java
(original)
+++ incubator/jsecurity/import/trunk/src/org/jsecurity/web/filter/PathMatchingFilter.java
Mon Mar  2 03:25:25 2009
@@ -26,6 +26,7 @@
 import org.jsecurity.web.WebUtils;
 import org.jsecurity.web.servlet.AdviceFilter;
 
+import javax.servlet.Filter;
 import javax.servlet.ServletRequest;
 import javax.servlet.ServletResponse;
 import java.util.LinkedHashMap;
@@ -76,14 +77,16 @@
      *
      * @param path   the application context path to match for executing this filter.
      * @param config the specified for <em>this particular filter only</em> for
the given <code>path</code>
+     * @return this configured filter.
      */
-    public void processPathConfig(String path, String config) {
+    public Filter processPathConfig(String path, String config) {
         String[] values = null;
         if (config != null) {
             values = split(config);
         }
 
         this.appliedPaths.put(path, values);
+        return this;
     }
 
     /**



Mime
View raw message