Class RenderInfoLoggingFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class RenderInfoLoggingFilter
    extends Object
    implements javax.servlet.Filter
    As an alternative to com.composum.pages.commons.taglib.IncludeTag#debugComment(boolean) that works on sling:include, too: writes out a HTML comment with the rendered resource and the resource type (since that could be possibly overridden).
    • Constructor Detail

      • RenderInfoLoggingFilter

        public RenderInfoLoggingFilter()
    • 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
      • init

        public void init​(javax.servlet.FilterConfig filterConfig)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Filter
        Throws:
        javax.servlet.ServletException
      • destroy

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

        public void activate​(com.composum.nodes.debugutil.RenderInfoLoggingFilter.Config config)
      • deactivate

        public void deactivate()