Class ServletMetricsFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.web.filter.OncePerRequestFilter
-
- ubic.gemma.web.metrics.binder.servlet.ServletMetricsFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
,Aware
,BeanNameAware
,DisposableBean
,InitializingBean
,EnvironmentAware
,ServletContextAware
public class ServletMetricsFilter extends OncePerRequestFilter
Metrics for servlet requests.We attempt to provide tags that are as close as possible to Spring Boot's WebMvcTags.
- Author:
- poirigui
-
-
Field Summary
-
Fields inherited from class org.springframework.web.filter.OncePerRequestFilter
ALREADY_FILTERED_SUFFIX
-
Fields inherited from class org.springframework.web.filter.GenericFilterBean
logger
-
-
Constructor Summary
Constructors Constructor Description ServletMetricsFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain)
void
setMetricName(String metricName)
Set the name under which servlet metrics are reported.-
Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
-
Methods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, afterPropertiesSet, destroy, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
-
-
-
-
Method Detail
-
setMetricName
public void setMetricName(String metricName)
Set the name under which servlet metrics are reported.
-
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 classOncePerRequestFilter
- Throws:
javax.servlet.ServletException
IOException
-
-