public class AccessLogFilter extends Object implements javax.servlet.Filter
Constructor and Description |
---|
AccessLogFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Does nothing
|
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
Creates logs if INFO logging level is set and URL is "interesting" according to
isInterestingUrl(String) . |
void |
init(javax.servlet.FilterConfig filterConfig)
Does nothing but prints INFO log message
|
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
filterConfig
- not usedjavax.servlet.ServletException
- not thrownpublic void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
isInterestingUrl(String)
.doFilter
in interface javax.servlet.Filter
servletRequest
- requestservletResponse
- responsefilterChain
- filter chainIOException
- if another filter in the filter chain throws itjavax.servlet.ServletException
- if another filter in the filter chain throws itpublic void destroy()
destroy
in interface javax.servlet.Filter
Copyright © 2002-2024 Atlassian. All Rights Reserved.