クラス RequestMatcherRedirectFilter

java.lang.ObjectSE
org.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
org.springframework.security.web.RequestMatcherRedirectFilter
実装されたすべてのインターフェース:
jakarta.servlet.Filterorg.springframework.beans.factory.Awareorg.springframework.beans.factory.BeanNameAwareorg.springframework.beans.factory.DisposableBeanorg.springframework.beans.factory.InitializingBeanorg.springframework.context.EnvironmentAwareorg.springframework.core.env.EnvironmentCapableorg.springframework.web.context.ServletContextAware

public final class RequestMatcherRedirectFilter extends org.springframework.web.filter.OncePerRequestFilter
RequestMatcher に一致するリクエストを指定された URL にリダイレクトするフィルター。
導入:
5.6
  • フィールドサマリー

    クラス org.springframework.web.filter.OncePerRequestFilter から継承されたフィールド

    ALREADY_FILTERED_SUFFIX

    クラス org.springframework.web.filter.GenericFilterBean から継承されたフィールド

    logger
  • コンストラクターのサマリー

    コンストラクター
    コンストラクター
    説明
    フィルターのインスタンスを作成して初期化します。
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    protected void
    doFilterInternal(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain filterChain)

    クラス 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

    クラス java.lang.ObjectSE から継承されたメソッド

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
  • コンストラクターの詳細

    • RequestMatcherRedirectFilter

      public RequestMatcherRedirectFilter(RequestMatcher requestMatcher, StringSE redirectUrl)
      フィルターのインスタンスを作成して初期化します。
      パラメーター:
      requestMatcher - リクエストマッチャー
      redirectUrl - リダイレクト URL
  • メソッドの詳細

    • doFilterInternal

      protected void doFilterInternal(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain filterChain) throws jakarta.servlet.ServletException, IOExceptionSE
      次で指定:
      クラス org.springframework.web.filter.OncePerRequestFilterdoFilterInternal 
      例外:
      jakarta.servlet.ServletException
      IOExceptionSE