incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1155355 - /sling/trunk/contrib/extensions/security/src/main/java/org/apache/sling/security/impl/ReferrerFilter.java
Date Tue, 09 Aug 2011 13:15:41 GMT
Author: cziegeler
Date: Tue Aug  9 13:15:41 2011
New Revision: 1155355

URL: http://svn.apache.org/viewvc?rev=1155355&view=rev
Log:
Use global filter instead of Sling filter

Modified:
    sling/trunk/contrib/extensions/security/src/main/java/org/apache/sling/security/impl/ReferrerFilter.java

Modified: sling/trunk/contrib/extensions/security/src/main/java/org/apache/sling/security/impl/ReferrerFilter.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/security/src/main/java/org/apache/sling/security/impl/ReferrerFilter.java?rev=1155355&r1=1155354&r2=1155355&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/security/src/main/java/org/apache/sling/security/impl/ReferrerFilter.java
(original)
+++ sling/trunk/contrib/extensions/security/src/main/java/org/apache/sling/security/impl/ReferrerFilter.java
Tue Aug  9 13:15:41 2011
@@ -39,18 +39,19 @@ import javax.servlet.ServletResponse;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
+import org.apache.felix.scr.annotations.Component;
 import org.apache.felix.scr.annotations.Property;
 import org.apache.felix.scr.annotations.PropertyUnbounded;
-import org.apache.felix.scr.annotations.sling.SlingFilter;
-import org.apache.felix.scr.annotations.sling.SlingFilterScope;
+import org.apache.felix.scr.annotations.Service;
 import org.apache.sling.commons.osgi.OsgiUtil;
 import org.osgi.service.component.ComponentContext;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-@SlingFilter(order=-1500000000,scope=SlingFilterScope.REQUEST,metatype=true,
-        description="%referrer.description",
+@Component(metatype=true, description="%referrer.description",
         label="%referrer.name")
+@Property(name="pattern", value="/.*", propertyPrivate=true)
+@Service(value=Filter.class)
 public class ReferrerFilter implements Filter {
 
     /** Logger. */



Mime
View raw message