Class AccessedResourcesLoggerFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class AccessedResourcesLoggerFilter
    extends Object
    implements javax.servlet.Filter
    Tries to log most resources that are accessed during a request.
    • Constructor Detail

      • AccessedResourcesLoggerFilter

        public AccessedResourcesLoggerFilter()
    • Method Detail

      • doFilter

        public void doFilter​(javax.servlet.ServletRequest rawRequest,
                             javax.servlet.ServletResponse rawResponse,
                             javax.servlet.FilterChain chain)
                      throws IOException,
                             javax.servlet.ServletException
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        IOException
        javax.servlet.ServletException
      • switchResolver

        protected void switchResolver​(org.apache.sling.api.SlingHttpServletRequest slingRequestImpl,
                                      org.apache.sling.api.resource.ResourceResolver resourceResolver)
                               throws javax.servlet.ServletException
        Throws:
        javax.servlet.ServletException
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Filter
      • init

        public void init​(javax.servlet.FilterConfig filterConfig)
        Specified by:
        init in interface javax.servlet.Filter
      • deactivate

        protected void deactivate()