クラス MDCClearFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
org.terasoluna.gfw.web.logging.mdc.MDCClearFilter
- すべての実装されたインタフェース:
jakarta.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 MDCClearFilter
extends org.springframework.web.filter.OncePerRequestFilter
Servlet filter class that clears all the values stored in
MDC
.
If MDC
is being used, it is has to be put to put this filter before all other servlet filters (Mandatory condition).
-
フィールドの概要
クラスから継承されたフィールド org.springframework.web.filter.OncePerRequestFilter
ALREADY_FILTERED_SUFFIX
クラスから継承されたフィールド org.springframework.web.filter.GenericFilterBean
logger
-
コンストラクタの概要
-
メソッドの概要
修飾子とタイプメソッド説明protected final void
doFilterInternal
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain filterChain) Clears all the values fromMDC
after execution of all the filters is completed.クラスから継承されたメソッド org.springframework.web.filter.OncePerRequestFilter
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
クラスから継承されたメソッド org.springframework.web.filter.GenericFilterBean
addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
-
コンストラクタの詳細
-
MDCClearFilter
public MDCClearFilter()
-
-
メソッドの詳細
-
doFilterInternal
protected final void doFilterInternal(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain filterChain) throws jakarta.servlet.ServletException, IOException Clears all the values fromMDC
after execution of all the filters is completed.- 定義:
doFilterInternal
クラス内org.springframework.web.filter.OncePerRequestFilter
- パラメータ:
request
-HttpServletRequest
response
-HttpServletResponse
filterChain
-FilterChain
- 例外:
jakarta.servlet.ServletException
- IfServletException
occurs further in the execution chain.IOException
- If IOExceptionIOException
occurs further in the execution chain.- 関連項目:
-
OncePerRequestFilter.doFilterInternal(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, javax.servlet.FilterChain)
-