|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.web.filters.accesslog.AccessLogFilter
public class AccessLogFilter
Logs the JIRA user name and request URL via log4j to a special log file in Apache Combined Log Format (with response time)
This also works in concert with the com.atlassian.jira.soap.axis.JiraSoapAxisLogger to pass information between the layers via HttpServletRequest attributes.
| Constructor Summary | |
|---|---|
AccessLogFilter()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccessLogFilter()
| Method Detail |
|---|
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.FilterfilterConfig - not used
javax.servlet.ServletException - not thrown
public 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.FilterservletRequest - requestservletResponse - responsefilterChain - filter chain
IOException - if another filter in the filter chain throws it
javax.servlet.ServletException - if another filter in the filter chain throws itpublic void destroy()
destroy in interface javax.servlet.Filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||