interface RedirectAttributes : Model
A specialization of the Model interface that controllers can use to select attributes for a redirect scenario. Since the intent of adding redirect attributes is very explicit -- i.e. to be used for a redirect URL, attribute values may be formatted as Strings and stored that way to make them eligible to be appended to the query string or expanded as URI variables in This interface also provides a way to add flash attributes. For a general overview of flash attributes see FlashMap. You can use RedirectAttributes to store flash attributes and they will be automatically propagated to the "output" FlashMap of the current request. Example usage in an
A RedirectAttributes model is empty when the method is called and is never used unless the method returns a redirect view name or a RedirectView. After the redirect, flash attributes are automatically added to the model of the controller that serves the target URL. |
|
open class RedirectAttributesModelMap : ModelMap, RedirectAttributes
A ModelMap implementation of RedirectAttributes that formats values as Strings using a DataBinder. Also provides a place to store flash attributes so they can survive a redirect without the need to be embedded in the redirect URL. |