open class RedirectViewControllerRegistration
Assist with the registration of a single redirect view controller.
Author
Rossen Stoyanchev
Since
4.1
RedirectViewControllerRegistration(urlPath: String, redirectUrl: String) |
open fun setContextRelative(contextRelative: Boolean): RedirectViewControllerRegistration
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 |
|
open fun setKeepQueryParams(propagate: Boolean): RedirectViewControllerRegistration
Whether to propagate the query parameters of the current request through to the target redirect URL. Default is |
|
open fun setStatusCode(statusCode: HttpStatus): RedirectViewControllerRegistration
Set the specific redirect 3xx status code to use. If not set, org.springframework.web.servlet.view.RedirectView will select |