org.inspektr.error.web
Class ErrorLoggingFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
org.inspektr.error.web.ErrorLoggingFilter
- All Implemented Interfaces:
- javax.servlet.Filter, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.web.context.ServletContextAware
public class ErrorLoggingFilter
- extends org.springframework.web.filter.OncePerRequestFilter
Spring manageable bean implementing the javax.servlet.Filter
interface. This filter should be configured as the top of the web application's
filter chain and will record any uncaught exceptions from the chain using
the configured ErrorLogManager
.
To take advantage of Spring dependency injection,
this bean can be specified as the target of a DelegatingFilterProxy
.
- Since:
- 1.0
- Version:
- $Revision: 1.2 $ $Date: 2007/07/11 20:48:46 $
- Author:
- lleung
Fields inherited from class org.springframework.web.filter.OncePerRequestFilter |
ALREADY_FILTERED_SUFFIX |
Fields inherited from class org.springframework.web.filter.GenericFilterBean |
logger |
Methods inherited from class org.springframework.web.filter.OncePerRequestFilter |
doFilter, getAlreadyFilteredAttributeName, shouldNotFilter |
Methods inherited from class org.springframework.web.filter.GenericFilterBean |
addRequiredProperty, afterPropertiesSet, destroy, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setServletContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorLoggingFilter
public ErrorLoggingFilter()
doFilterInternal
protected void doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
throws javax.servlet.ServletException,
IOException
- Specified by:
doFilterInternal
in class org.springframework.web.filter.OncePerRequestFilter
- Throws:
javax.servlet.ServletException
IOException
setErrorLogManager
public void setErrorLogManager(ErrorLogManager errorlogManager)
Copyright © 2007-2012. All Rights Reserved.