FlashMap
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.
Attributes
- See also
-
FlashMapSupport
- Graph
-
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass Any
Members list
Type members
Classlikes
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:
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"
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
now.type
Value members
Concrete methods
Returns the value associated with a key and flags it to be swept.
Returns the value associated with a key and flags it to be swept.
Attributes
Flags all current keys so the entire map is cleared on the next sweep.
Flags all current keys so the entire map is cleared on the next sweep.
Attributes
Returns the value associated with a key and flags it to be swept.
Returns the value associated with a key and flags it to be swept.
Attributes
Creates a new iterator over the values of the flash map. These are the values that were added during the last request.
Creates a new iterator over the values of the flash map. These are the values that were added during the last request.
Attributes
Clears all flags so no entries are removed on the next sweep.
Clears all flags so no entries are removed on the next sweep.
Attributes
Clears the flag for the specified key so its entry is not removed on the next sweep.
Clears the flag for the specified key so its entry is not removed on the next sweep.
Attributes
Removes an entry from the flash map. It is no longer available for this request or the next.
Removes an entry from the flash map. It is no longer available for this request or the next.
Attributes
Removes all flagged entries.
Removes all flagged entries.
Attributes
Convert to Set
Convert to Set
Attributes
Adds an entry to the flash map. Clears the sweep flag for the key.
Adds an entry to the flash map. Clears the sweep flag for the key.