クラスの使用
org.springframework.web.servlet.HandlerExecutionChain
HandlerExecutionChain を使用するパッケージ
パッケージ
説明
アプリケーションコンテキストインフラストラクチャと統合するサーブレット、および Spring Web MVC フレームワークのコアインターフェースとクラスを提供します。
カスタム実装の抽象基本クラスを含む、標準の HandlerMapping 実装を提供します。
org.springframework.web.servlet 内の HandlerExecutionChain 使用
修飾子と型メソッド説明protected @Nullable HandlerExecutionChainDispatcherServlet.getHandler(jakarta.servlet.http.HttpServletRequest request) このリクエストの HandlerExecutionChain を返します。HandlerMapping.getHandler(jakarta.servlet.http.HttpServletRequest request) このリクエストのハンドラーとインターセプターを返します。org.springframework.web.servlet.handler 内の HandlerExecutionChain 使用
修飾子と型メソッド説明protected HandlerExecutionChainAbstractHandlerMapping.getCorsHandlerExecutionChain(jakarta.servlet.http.HttpServletRequest request, HandlerExecutionChain chain, @Nullable CorsConfiguration config) CORS リクエスト用にHandlerExecutionChainを更新し、チェーンの先頭にインターセプターを挿入して CORS チェックを実行し、プリフライトリクエストに対して no-op ハンドラーも使用します。AbstractHandlerMapping.getHandler(jakarta.servlet.http.HttpServletRequest request) 特定のリクエストのハンドラーを検索し、特定のハンドラーが見つからない場合はデフォルトのハンドラーにフォールバックします。protected HandlerExecutionChainAbstractHandlerMapping.getHandlerExecutionChain(ObjectSE handler, jakarta.servlet.http.HttpServletRequest request) 該当するインターセプターを含む、指定されたハンドラー用のHandlerExecutionChainを作成します。型 HandlerExecutionChain のパラメーターを持つ org.springframework.web.servlet.handler のメソッド修飾子と型メソッド説明protected HandlerExecutionChainAbstractHandlerMapping.getCorsHandlerExecutionChain(jakarta.servlet.http.HttpServletRequest request, HandlerExecutionChain chain, @Nullable CorsConfiguration config) CORS リクエスト用にHandlerExecutionChainを更新し、チェーンの先頭にインターセプターを挿入して CORS チェックを実行し、プリフライトリクエストに対して no-op ハンドラーも使用します。