play.mvc
Class Http.Flash

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,java.lang.String>
          extended by play.mvc.Http.Flash
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.String>
Enclosing class:
Http

public static class Http.Flash
extends java.util.HashMap<java.lang.String,java.lang.String>

HTTP Flash.

Flash data are encoded into an HTTP cookie, and can only contain simple String values.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
 boolean isDirty
           
 
Constructor Summary
Http.Flash(java.util.Map<java.lang.String,java.lang.String> data)
           
 
Method Summary
 void clear()
          Clears the flash scope.
 java.lang.String put(java.lang.String key, java.lang.String value)
          Adds the given value to the flash scope.
 void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.String> values)
          Adds the given values to the flash scope.
 java.lang.String remove(java.lang.Object key)
          Removes the specified value from the flash scope.
 
Methods inherited from class java.util.HashMap
clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

isDirty

public boolean isDirty
Constructor Detail

Http.Flash

public Http.Flash(java.util.Map<java.lang.String,java.lang.String> data)
Method Detail

remove

public java.lang.String remove(java.lang.Object key)
Removes the specified value from the flash scope.

Specified by:
remove in interface java.util.Map<java.lang.String,java.lang.String>
Overrides:
remove in class java.util.HashMap<java.lang.String,java.lang.String>

put

public java.lang.String put(java.lang.String key,
                            java.lang.String value)
Adds the given value to the flash scope.

Specified by:
put in interface java.util.Map<java.lang.String,java.lang.String>
Overrides:
put in class java.util.HashMap<java.lang.String,java.lang.String>

putAll

public void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.String> values)
Adds the given values to the flash scope.

Specified by:
putAll in interface java.util.Map<java.lang.String,java.lang.String>
Overrides:
putAll in class java.util.HashMap<java.lang.String,java.lang.String>

clear

public void clear()
Clears the flash scope.

Specified by:
clear in interface java.util.Map<java.lang.String,java.lang.String>
Overrides:
clear in class java.util.HashMap<java.lang.String,java.lang.String>