incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1541125 - in /sling/whiteboard/bdelacretaz/feature-flags/src/main/java/org/apache/sling/extensions/featureflags/impl/providers: RequestHeaderProvider.java ResourcePathProvider.java
Date Tue, 12 Nov 2013 16:07:39 GMT
Author: bdelacretaz
Date: Tue Nov 12 16:07:38 2013
New Revision: 1541125

URL: http://svn.apache.org/r1541125
Log:
SLING-3148 - tweaks

Modified:
    sling/whiteboard/bdelacretaz/feature-flags/src/main/java/org/apache/sling/extensions/featureflags/impl/providers/RequestHeaderProvider.java
    sling/whiteboard/bdelacretaz/feature-flags/src/main/java/org/apache/sling/extensions/featureflags/impl/providers/ResourcePathProvider.java

Modified: sling/whiteboard/bdelacretaz/feature-flags/src/main/java/org/apache/sling/extensions/featureflags/impl/providers/RequestHeaderProvider.java
URL: http://svn.apache.org/viewvc/sling/whiteboard/bdelacretaz/feature-flags/src/main/java/org/apache/sling/extensions/featureflags/impl/providers/RequestHeaderProvider.java?rev=1541125&r1=1541124&r2=1541125&view=diff
==============================================================================
--- sling/whiteboard/bdelacretaz/feature-flags/src/main/java/org/apache/sling/extensions/featureflags/impl/providers/RequestHeaderProvider.java
(original)
+++ sling/whiteboard/bdelacretaz/feature-flags/src/main/java/org/apache/sling/extensions/featureflags/impl/providers/RequestHeaderProvider.java
Tue Nov 12 16:07:38 2013
@@ -28,7 +28,6 @@ import org.apache.sling.extensions.featu
 @Service
 @Property(name="service.ranking", intValue=300)
 public class RequestHeaderProvider implements FeatureFlagsProvider {
-    public static final String NAME = "request.header";
     public static final String HEADER_NAME = "X-sling-feature";
 
     public boolean isEnabled(String featureFlagName, SlingHttpServletRequest request) {

Modified: sling/whiteboard/bdelacretaz/feature-flags/src/main/java/org/apache/sling/extensions/featureflags/impl/providers/ResourcePathProvider.java
URL: http://svn.apache.org/viewvc/sling/whiteboard/bdelacretaz/feature-flags/src/main/java/org/apache/sling/extensions/featureflags/impl/providers/ResourcePathProvider.java?rev=1541125&r1=1541124&r2=1541125&view=diff
==============================================================================
--- sling/whiteboard/bdelacretaz/feature-flags/src/main/java/org/apache/sling/extensions/featureflags/impl/providers/ResourcePathProvider.java
(original)
+++ sling/whiteboard/bdelacretaz/feature-flags/src/main/java/org/apache/sling/extensions/featureflags/impl/providers/ResourcePathProvider.java
Tue Nov 12 16:07:38 2013
@@ -28,9 +28,8 @@ import org.apache.sling.extensions.featu
 @Service
 @Property(name="service.ranking", intValue=100)
 public class ResourcePathProvider implements FeatureFlagsProvider {
-    public static final String NAME = "resource.path.feature";
-
     public boolean isEnabled(String featureFlagName, SlingHttpServletRequest request) {
+        // TODO this is just a simplistic example meant to demonstrate the concept...
         return request.getResource().getPath().contains("/tmp/");
     }
     



Mime
View raw message