Revert "Publish AAAShiroFilter as a proper Filter service" 29/101729/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 4 Jul 2022 21:13:48 +0000 (23:13 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 4 Jul 2022 21:14:01 +0000 (23:14 +0200)
This reverts commit b4bab95a954e7600b0427b86540db1706ffcad5b, as we are
keeping web-api.

Change-Id: If108478fb88d83a3243699dce994faa54e2d13af
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
aaa-shiro/impl/src/main/java/org/opendaylight/aaa/shiro/filters/AAAShiroFilter.java

index 49b895b64d1ff99e94e3df1be84c05a4ed024346..cd2577bfcec02515d20bdb7c9977f02522112595 100644 (file)
@@ -8,13 +8,7 @@
 package org.opendaylight.aaa.shiro.filters;
 
 import javax.servlet.Filter;
-import javax.servlet.annotation.WebFilter;
 import org.apache.shiro.web.servlet.ShiroFilter;
-import org.osgi.service.component.annotations.Component;
-import org.osgi.service.component.annotations.ServiceScope;
-import org.osgi.service.http.whiteboard.propertytypes.HttpWhiteboardFilterAsyncSupported;
-import org.osgi.service.http.whiteboard.propertytypes.HttpWhiteboardFilterName;
-import org.osgi.service.http.whiteboard.propertytypes.HttpWhiteboardFilterPattern;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -34,11 +28,6 @@ import org.slf4j.LoggerFactory;
  * @see Filter
  * @see ShiroFilter
  */
-@WebFilter(urlPatterns = "/*", filterName = "AAAShiroFilter")
-@HttpWhiteboardFilterAsyncSupported
-@HttpWhiteboardFilterPattern("/*")
-@HttpWhiteboardFilterName("AAAShiroFilter")
-@Component(service = Filter.class, scope = ServiceScope.PROTOTYPE)
 public final class AAAShiroFilter extends ShiroFilter {
     private static final Logger LOG = LoggerFactory.getLogger(AAAShiroFilter.class);
 
@@ -46,16 +35,9 @@ public final class AAAShiroFilter extends ShiroFilter {
         LOG.debug("Creating the AAAShiroFilter");
     }
 
-    /*
-     * (non-Javadoc)
-     *
-     * Adds context clues that aid in debugging.
-     *
-     * @see ShiroFilter#init()
-     */
     @Override
     public void init() throws Exception {
         super.init();
-        LOG.debug("AAAShiroFilter initialized");
+        LOG.debug("Initializing the AAAShiroFilter");
     }
 }