class FlashMap extends Serializable
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.
- See also
FlashMapSupport
- Alphabetic
- By Inheritance
- FlashMap
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new FlashMap()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(key: String): Any
Returns the value associated with a key and flags it to be swept.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flag(): Unit
Flags all current keys so the entire map is cleared on the next sweep.
-
def
get(key: String): Option[Any]
Returns the value associated with a key and flags it to be swept.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
iterator: Iterator[(String, Any)]
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.
-
def
keep(key: String): Unit
Clears the flag for the specified key so its entry is not removed on the next sweep.
-
def
keep(): Unit
Clears all flags so no entries are removed on the next sweep.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
remove(key: String): Any
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.
-
def
sweep(): Unit
Removes all flagged entries.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toSet: Set[(String, Any)]
Convert to Set
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
update(key: String, value: Any): Unit
Adds an entry to the flash map.
Adds an entry to the flash map. Clears the sweep flag for the key.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
object
now
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"