インターフェース RedirectStrategy
- すべての既知の実装クラス:
DefaultRedirectStrategy
public interface RedirectStrategy
リダイレクトを実行するフレームワーク内のすべてのクラスのリダイレクトロジックをカプセル化します。
- 導入:
- 3.0
メソッドのサマリー
修飾子と型メソッド説明void
sendRedirect
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, StringSE url) 指定された URL へのリダイレクトを実行します
メソッドの詳細
sendRedirect
void sendRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, StringSE url) throws IOExceptionSE 指定された URL へのリダイレクトを実行します- パラメーター:
request
- 現在のリクエストresponse
- リダイレクトするレスポンスurl
- リダイレクト先のターゲット URL、たとえば "/login"- 例外:
IOExceptionSE