public class DiagnosticsLoggerFilter extends Object implements javax.servlet.Filter
A Filter that uses MDC to log the aggregated diagnostic information, based on the outcome of the filter chain.
| Modifier and Type | Class and Description |
|---|---|
static class |
DiagnosticsLoggerFilter.StatusExposingResponse
Wrapper for HttpServletResponse that overrides all methods that write its status code, to expose the status to users.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
MEMORY_APPENDER |
static String |
MEMORY_LOGGER |
| Constructor and Description |
|---|
DiagnosticsLoggerFilter() |
public static final String MEMORY_APPENDER
public static final String MEMORY_LOGGER
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.FilterCopyright © 2009–2013 SURFnet bv, The Netherlands. All rights reserved.