public class RedirectViewControllerRegistration extends ObjectSE
コンストラクターと説明 |
---|
RedirectViewControllerRegistration(StringSE urlPath, StringSE redirectUrl) |
修飾子と型 | メソッドと説明 |
---|---|
protected StringSE | getUrlPath() |
protected ParameterizableViewController | getViewController() |
protected void | setApplicationContext(ApplicationContext applicationContext) |
RedirectViewControllerRegistration | setContextRelative(boolean contextRelative) スラッシュ("/")で始まる所定のリダイレクト URL を、現在の ServletContext を基準にして解釈するかどうか。 |
RedirectViewControllerRegistration | setKeepQueryParams(boolean propagate) 現在のリクエストのクエリパラメーターをターゲットリダイレクト URL に伝播するかどうか。 |
RedirectViewControllerRegistration | setStatusCode(HttpStatus statusCode) 使用する特定のリダイレクト 3xx ステータスコードを設定します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public RedirectViewControllerRegistration setStatusCode(HttpStatus statusCode)
設定しない場合、RedirectView
はデフォルトで HttpStatus.MOVED_TEMPORARILY (302)
を選択します。
public RedirectViewControllerRegistration setContextRelative(boolean contextRelative)
デフォルトは true
です。
public RedirectViewControllerRegistration setKeepQueryParams(boolean propagate)
デフォルトは false
です。
protected void setApplicationContext(@Nullable ApplicationContext applicationContext)
protected StringSE getUrlPath()
protected ParameterizableViewController getViewController()