Package com.composum.nodes.debugutil
Class AccessedResourcesLoggerFilter
- java.lang.Object
-
- com.composum.nodes.debugutil.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AccessedResourcesLoggerFilter.Configuration
-
Field Summary
Fields Modifier and Type Field Description protected AccessedResourcesLoggerFilter.Configuration
config
protected static Pattern
INTERESTING_PATHS
-
Constructor Summary
Constructors Constructor Description AccessedResourcesLoggerFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
activate(AccessedResourcesLoggerFilter.Configuration config)
protected void
deactivate()
void
destroy()
void
doFilter(javax.servlet.ServletRequest rawRequest, javax.servlet.ServletResponse rawResponse, javax.servlet.FilterChain chain)
void
init(javax.servlet.FilterConfig filterConfig)
protected void
switchResolver(org.apache.sling.api.SlingHttpServletRequest slingRequestImpl, org.apache.sling.api.resource.ResourceResolver resourceResolver)
-
-
-
Field Detail
-
INTERESTING_PATHS
protected static final Pattern INTERESTING_PATHS
-
config
protected AccessedResourcesLoggerFilter.Configuration config
-
-
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
-
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 interfacejavax.servlet.Filter
-
init
public void init(javax.servlet.FilterConfig filterConfig)
- Specified by:
init
in interfacejavax.servlet.Filter
-
activate
protected void activate(AccessedResourcesLoggerFilter.Configuration config)
-
deactivate
protected void deactivate()
-
-