Class RedirectAttributesModelMap

java.lang.Object
java.util.AbstractMap<String,Object>
java.util.HashMap<String,Object>
java.util.LinkedHashMap<String,Object>
org.springframework.ui.ModelMap
org.springframework.web.servlet.mvc.support.RedirectAttributesModelMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>, SequencedMap<String,Object>, org.springframework.ui.Model, RedirectAttributes

public class RedirectAttributesModelMap extends org.springframework.ui.ModelMap implements 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.
Since:
3.1
Author:
Rossen Stoyanchev
See Also:
  • Constructor Details

    • RedirectAttributesModelMap

      public RedirectAttributesModelMap()
      Default constructor without a DataBinder. Attribute values are converted to String via AbstractMap.toString().
    • RedirectAttributesModelMap

      public RedirectAttributesModelMap(@Nullable org.springframework.validation.DataBinder dataBinder)
      Constructor with a DataBinder.
      Parameters:
      dataBinder - used to format attribute values as Strings
  • Method Details