Returns the value associated with a key and flags it to be swept.
Flags all current keys so the entire map is cleared on the next sweep.
Returns the value associated with a key and flags it to be swept.
Creates a new iterator over the values of the flash map.
Creates a new iterator over the values of the flash map. These are the values that were added during the last request.
Clears the flag for the specified key so its entry is not removed on the next sweep.
Clears all flags so no entries are removed on the next sweep.
Sets a value for the current request only.
Sets a value for the current request only. It will be removed before the next request unless explicitly kept. Data put in this object is available as usual:
flash.now("notice") = "logged in successfully" flash("notice") // "logged in successfully"
Removes an entry from the flash map.
Removes an entry from the flash map. It is no longer available for this request or the next.
Removes all flagged entries.
Convert to Set
Adds an entry to the flash map.
Adds an entry to the flash map. Clears the sweep flag for the key.
Adds an entry to the flash map.
Adds an entry to the flash map. Clears the sweep flag for the key.
(Since version 2.7.0) FlashMap#+= has been deprecated, please use update method instead
Removes an entry from the flash map.
Removes an entry from the flash map. It is no longer available for this request or the next.
(Since version 2.7.0) FlashMap#-= has been deprecated, please use remove method instead
A FlashMap is the data structure used by org.scalatra.FlashMapSupport to allow passing temporary values between sequential actions.
As of Scalatra 2.7.x, it does not directly inherit Map.
FlashMapSupport