Packages

c

org.scalatra

FlashMap

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

Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FlashMap
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new FlashMap()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(key: String): Any

    Returns the value associated with a key and flags it to be swept.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. def flag(): Unit

    Flags all current keys so the entire map is cleared on the next sweep.

  11. def get(key: String): Option[Any]

    Returns the value associated with a key and flags it to be swept.

  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. 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.

  16. def keep(key: String): Unit

    Clears the flag for the specified key so its entry is not removed on the next sweep.

  17. def keep(): Unit

    Clears all flags so no entries are removed on the next sweep.

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. 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.

  22. def sweep(): Unit

    Removes all flagged entries.

  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toSet: Set[(String, Any)]

    Convert to Set

  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. 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.

  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. 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"

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped