public class

AccessLogFilter

extends Object
implements Filter
java.lang.Object
   ↳ com.atlassian.jira.web.filters.accesslog.AccessLogFilter

Class Overview

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.

Summary

Public Constructors
AccessLogFilter()
Public Methods
void destroy()
Does nothing
void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
Creates logs if INFO logging level is set and URL is "interesting" according to #isInterestingUrl(String).
void init(FilterConfig filterConfig)
Does nothing but prints INFO log message
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.servlet.Filter

Public Constructors

public AccessLogFilter ()

Public Methods

public void destroy ()

Does nothing

public void doFilter (ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)

Creates logs if INFO logging level is set and URL is "interesting" according to #isInterestingUrl(String).

Parameters
servletRequest request
servletResponse response
filterChain filter chain
Throws
IOException if another filter in the filter chain throws it
ServletException if another filter in the filter chain throws it

public void init (FilterConfig filterConfig)

Does nothing but prints INFO log message

Parameters
filterConfig not used
Throws
ServletException not thrown