Package com.composum.nodes.debugutil
Class RenderInfoLoggingFilter
- java.lang.Object
-
- com.composum.nodes.debugutil.RenderInfoLoggingFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class RenderInfoLoggingFilter extends Object implements javax.servlet.Filter
As an alternative tocom.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 Summary
Constructors Constructor Description RenderInfoLoggingFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(com.composum.nodes.debugutil.RenderInfoLoggingFilter.Config config)
void
deactivate()
void
destroy()
void
doFilter(javax.servlet.ServletRequest rawRequest, javax.servlet.ServletResponse rawResponse, javax.servlet.FilterChain chain)
void
init(javax.servlet.FilterConfig filterConfig)
-
-
-
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 interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
-
activate
public void activate(com.composum.nodes.debugutil.RenderInfoLoggingFilter.Config config)
-
deactivate
public void deactivate()
-
-