Class

org.scalatra

FlashMap

Related Doc: package scalatra

Permalink

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, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FlashMap
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FlashMap()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(key: String): Any

    Permalink

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

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def flag(): Unit

    Permalink

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

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

    Permalink

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

  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def iterator: Iterator[(String, Any)]

    Permalink

    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

    Permalink

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

  17. def keep(): Unit

    Permalink

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

  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. object now

    Permalink

    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"
  22. def remove(key: String): Any

    Permalink

    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.

  23. def sweep(): Unit

    Permalink

    Removes all flagged entries.

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toSet: Set[(String, Any)]

    Permalink

    Convert to Set

  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. def update(key: String, value: Any): Unit

    Permalink

    Adds an entry to the flash map.

    Adds an entry to the flash map. Clears the sweep flag for the key.

  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def +=(kv: (String, Any)): FlashMap.this.type

    Permalink

    Adds an entry to the flash map.

    Adds an entry to the flash map. Clears the sweep flag for the key.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.7.0) FlashMap#+= has been deprecated, please use update method instead

  2. def -=(key: String): FlashMap.this.type

    Permalink

    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.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.7.0) FlashMap#-= has been deprecated, please use remove method instead

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped