public static class Http.Flash
extends java.util.HashMap<java.lang.String,java.lang.String>
Flash data are encoded into an HTTP cookie, and can only contain simple String values.
Modifier and Type | Field and Description |
---|---|
boolean |
isDirty |
Constructor and Description |
---|
Flash(java.util.Map<java.lang.String,java.lang.String> data) |
Modifier and Type | Method and Description |
---|---|
play.api.mvc.Flash |
asScala()
Convert this flash to a Scala flash.
|
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.
|
clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, values
public java.lang.String remove(java.lang.Object key)
remove
in interface java.util.Map<java.lang.String,java.lang.String>
remove
in class java.util.HashMap<java.lang.String,java.lang.String>
public java.lang.String put(java.lang.String key, java.lang.String value)
put
in interface java.util.Map<java.lang.String,java.lang.String>
put
in class java.util.HashMap<java.lang.String,java.lang.String>
public void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.String> values)
putAll
in interface java.util.Map<java.lang.String,java.lang.String>
putAll
in class java.util.HashMap<java.lang.String,java.lang.String>
public void clear()
clear
in interface java.util.Map<java.lang.String,java.lang.String>
clear
in class java.util.HashMap<java.lang.String,java.lang.String>
public play.api.mvc.Flash asScala()