Class SoftwareVersionLogFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.hawaiiframework.logging.web.filter.AbstractGenericFilterBean
-
- org.hawaiiframework.logging.web.filter.SoftwareVersionLogFilter
-
- 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 SoftwareVersionLogFilter extends AbstractGenericFilterBean
Servlet filter that logs the software version of the application. It adds the version to the Kibana log fields as well.- Since:
- 3.0.0.M18
- Author:
- Rutger Lubbers
-
-
Constructor Summary
Constructors Constructor Description SoftwareVersionLogFilter(org.springframework.boot.info.BuildProperties buildProperties)
The constructor.
-
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
-
-
-
-
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
-
-