incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r722872 - /incubator/sling/trunk/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/helper/ResourceCollector.java
Date Wed, 03 Dec 2008 12:55:27 GMT
Author: fmeschbe
Date: Wed Dec  3 04:55:27 2008
New Revision: 722872

URL: http://svn.apache.org/viewvc?rev=722872&view=rev
Log:
SLING-754 Consider also scripts whose name starts with a selector
followed by the request method name.

Modified:
    incubator/sling/trunk/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/helper/ResourceCollector.java

Modified: incubator/sling/trunk/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/helper/ResourceCollector.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/helper/ResourceCollector.java?rev=722872&r1=722871&r2=722872&view=diff
==============================================================================
--- incubator/sling/trunk/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/helper/ResourceCollector.java
(original)
+++ incubator/sling/trunk/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/helper/ResourceCollector.java
Wed Dec  3 04:55:27 2008
@@ -226,6 +226,13 @@
                     }
                 }
 
+                if (selector != null
+                    && scriptName.equals(selector + "." + methodName)) {
+                    addWeightedResource(resources, child, selIdx + 1,
+                        WeightedResource.WEIGHT_NONE);
+                    continue;
+                }
+                
                 if (scriptName.equals(methodName)) {
                     addWeightedResource(resources, child, selIdx,
                         WeightedResource.WEIGHT_NONE);



Mime
View raw message