Example usage for Java org.springframework.web.servlet.view RedirectView fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
void | addStaticAttribute(String name, Object value) Add static data to this view, exposed in each view. |
String | getUrl() Return the URL of the resource that this view wraps. |
boolean | isRedirectView() Returns "true" indicating this view performs a redirect. |
void | setApplicationContext(@Nullable ApplicationContext context) |
void | setContextRelative(boolean contextRelative) Set whether to interpret a given URL that starts with a slash ("/") as relative to the current ServletContext, i.e. |
void | setExposeModelAttributes(final boolean exposeModelAttributes) Set the exposeModelAttributes flag which denotes whether or not model attributes should be exposed as HTTP query parameters. |
void | setHttp10Compatible(boolean http10Compatible) Set whether to stay compatible with HTTP 1.0 clients. |
void | setPropagateQueryParams(boolean propagateQueryParams) When set to true the query string of the current URL is appended and thus propagated through to the redirected URL. |
void | setServletContext(ServletContext servletContext) |
void | setStatusCode(HttpStatus statusCode) Set the status code for this view. |
void | setUrl(@Nullable String url) Set the URL of the resource that this view wraps. |