Java org.springframework.web.servlet.view RedirectView fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.web.servlet.view RedirectView fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.web.servlet.view RedirectView.

The text is from its open source code.

Subclass

org.springframework.web.servlet.view.RedirectView has subclasses.
Click this link to see all its subclasses.

Constructor

RedirectView(String url)
Create a new RedirectView with the given URL.
RedirectView(String url, boolean contextRelative)
Create a new RedirectView with the given URL.
RedirectView(String url, boolean contextRelative, boolean http10Compatible)
Create a new RedirectView with the given URL.
RedirectView()
Constructor for use as a bean.
RedirectView(String url, boolean contextRelative, boolean http10Compatible, boolean exposeModelAttributes)
Create a new RedirectView with the given URL.

Method

voidaddStaticAttribute(String name, Object value)
Add static data to this view, exposed in each view.
StringgetUrl()
Return the URL of the resource that this view wraps.
booleanisRedirectView()
Returns "true" indicating this view performs a redirect.
voidsetApplicationContext(@Nullable ApplicationContext context)
voidsetContextRelative(boolean contextRelative)
Set whether to interpret a given URL that starts with a slash ("/") as relative to the current ServletContext, i.e.
voidsetExposeModelAttributes(final boolean exposeModelAttributes)
Set the exposeModelAttributes flag which denotes whether or not model attributes should be exposed as HTTP query parameters.
voidsetHttp10Compatible(boolean http10Compatible)
Set whether to stay compatible with HTTP 1.0 clients.
voidsetPropagateQueryParams(boolean propagateQueryParams)
When set to true the query string of the current URL is appended and thus propagated through to the redirected URL.
voidsetServletContext(ServletContext servletContext)
voidsetStatusCode(HttpStatus statusCode)
Set the status code for this view.
voidsetUrl(@Nullable String url)
Set the URL of the resource that this view wraps.