Class TransactionTypeFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.hawaiiframework.logging.web.filter.AbstractGenericFilterBean
-
- org.hawaiiframework.logging.web.filter.TransactionTypeFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.EnvironmentAware
,org.springframework.core.env.EnvironmentCapable
,org.springframework.web.context.ServletContextAware
public class TransactionTypeFilter extends AbstractGenericFilterBean
A filter that assigns the transaction's name (class and method name) to the Kibana logger for each request.- Author:
- Richard Kohlen
-
-
Constructor Summary
Constructors Constructor Description TransactionTypeFilter(org.springframework.context.ApplicationContext applicationContext)
Constructor, the application context should be provided when constructing this class.
-
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)
Same contract as fordoFilter
.-
Methods inherited from class org.hawaiiframework.logging.web.filter.AbstractGenericFilterBean
doFilter
-
-
-
-
Constructor Detail
-
TransactionTypeFilter
public TransactionTypeFilter(org.springframework.context.ApplicationContext applicationContext)
Constructor, the application context should be provided when constructing this class. This class cannot be a bean because it inhered from AbstractGenericFilterBean.- Parameters:
applicationContext
- the application context of the Spring Boot Application
-
-
Method Detail
-
doFilterInternal
protected void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, IOException
Same contract as fordoFilter
.- Specified by:
doFilterInternal
in classAbstractGenericFilterBean
- Throws:
javax.servlet.ServletException
IOException
-
-