类 RedirectViewControllerRegistration
java.lang.Object
cn.taketoday.web.config.RedirectViewControllerRegistration
Assist with the registration of a single redirect view controller.
- 从以下版本开始:
- 4.0 2022/2/8 15:44
- 作者:
- Rossen Stoyanchev, Harry Yang
-
字段概要
字段修饰符和类型字段说明private final ParameterizableViewControllerprivate final RedirectViewprivate final String -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected Stringprotected ParameterizableViewControllerprotected voidsetApplicationContext(cn.taketoday.context.ApplicationContext applicationContext) setContextRelative(boolean contextRelative) Whether to interpret a given redirect URL that starts with a slash ("/") as relative to the current ServletContext, i.e. as relative to the web application root.setKeepQueryParams(boolean propagate) Whether to propagate the query parameters of the current request through to the target redirect URL.setStatusCode(HttpStatusCode statusCode) Set the specific redirect 3xx status code to use.
-
字段详细资料
-
urlPath
-
redirectView
-
controller
-
-
构造器详细资料
-
RedirectViewControllerRegistration
-
-
方法详细资料
-
setStatusCode
Set the specific redirect 3xx status code to use.If not set,
RedirectViewwill selectHttpStatus.MOVED_TEMPORARILY (302)by default. -
setContextRelative
Whether to interpret a given redirect URL that starts with a slash ("/") as relative to the current ServletContext, i.e. as relative to the web application root.Default is
true. -
setKeepQueryParams
Whether to propagate the query parameters of the current request through to the target redirect URL.Default is
false. -
setApplicationContext
protected void setApplicationContext(@Nullable cn.taketoday.context.ApplicationContext applicationContext) -
getUrlPath
-
getViewController
-