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
Deprecated.
Deprecated as of 2.7.0.
|
Constructor and Description |
---|
Flash(play.api.mvc.Flash underlying) |
Flash(int initialCapacity)
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
Flash(int initialCapacity,
float loadFactor)
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
Flash(java.util.Map<java.lang.String,java.lang.String> data) |
Modifier and Type | Method and Description |
---|---|
Http.Flash |
adding(java.util.Map<java.lang.String,java.lang.String> values)
Returns a new flash with the values from the given map added.
|
Http.Flash |
adding(java.lang.String key,
java.lang.String value)
Returns a new flash with the given key-value pair added.
|
java.util.Optional<java.lang.String> |
apply(java.lang.String key)
Optionally returns the session value associated with a key.
|
play.api.mvc.Flash |
asScala()
Convert this flash to a Scala flash.
|
void |
clear()
Deprecated.
Deprecated as of 2.7.0. Just create a new instance instead.
|
java.lang.Object |
clone()
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
java.lang.String |
compute(java.lang.String key,
java.util.function.BiFunction<? super java.lang.String,? super java.lang.String,? extends java.lang.String> remappingFunction)
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
java.lang.String |
computeIfAbsent(java.lang.String key,
java.util.function.Function<? super java.lang.String,? extends java.lang.String> mappingFunction)
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
java.lang.String |
computeIfPresent(java.lang.String key,
java.util.function.BiFunction<? super java.lang.String,? super java.lang.String,? extends java.lang.String> remappingFunction)
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
boolean |
containsKey(java.lang.Object key)
Deprecated.
Deprecated as of 2.7.0. Use
getOptional(String) instead. |
boolean |
containsValue(java.lang.Object value)
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
java.util.Map<java.lang.String,java.lang.String> |
data() |
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> |
entrySet()
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
void |
forEach(java.util.function.BiConsumer<? super java.lang.String,? super java.lang.String> action)
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
java.lang.String |
get(java.lang.Object key)
Deprecated.
Deprecated as of 2.7.0. Use
getOptional(String) instead. |
java.util.Optional<java.lang.String> |
getOptional(java.lang.String key)
Optionally returns the flash scope value associated with a key.
|
java.lang.String |
getOrDefault(java.lang.Object key,
java.lang.String defaultValue)
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
boolean |
isEmpty()
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
java.util.Set<java.lang.String> |
keySet()
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
java.lang.String |
merge(java.lang.String key,
java.lang.String value,
java.util.function.BiFunction<? super java.lang.String,? super java.lang.String,? extends java.lang.String> remappingFunction)
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
java.lang.String |
put(java.lang.String key,
java.lang.String value)
Deprecated.
Deprecated as of 2.7.0. Use
adding(String, String) instead. |
void |
putAll(java.util.Map<? extends java.lang.String,? extends java.lang.String> values)
Deprecated.
Deprecated as of 2.7.0. Use
adding(Map) instead. |
java.lang.String |
putIfAbsent(java.lang.String key,
java.lang.String value)
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
java.lang.String |
remove(java.lang.Object key)
Deprecated.
Deprecated as of 2.7.0. Use
removing(String...) instead. |
boolean |
remove(java.lang.Object key,
java.lang.Object value)
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
Http.Flash |
removing(java.lang.String... keys)
Returns a new flash with the given keys removed.
|
java.lang.String |
replace(java.lang.String key,
java.lang.String value)
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
boolean |
replace(java.lang.String key,
java.lang.String oldValue,
java.lang.String newValue)
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
void |
replaceAll(java.util.function.BiFunction<? super java.lang.String,? super java.lang.String,? extends java.lang.String> function)
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
int |
size()
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
java.util.Collection<java.lang.String> |
values()
Deprecated.
Deprecated as of 2.7.0.
Http.Flash will not be a subclass of HashMap
in future Play releases. |
public Flash(java.util.Map<java.lang.String,java.lang.String> data)
public Flash(play.api.mvc.Flash underlying)
@Deprecated public Flash(int initialCapacity, float loadFactor)
Http.Flash
will not be a subclass of HashMap
in future Play releases.@Deprecated public Flash(int initialCapacity)
Http.Flash
will not be a subclass of HashMap
in future Play releases.public java.util.Map<java.lang.String,java.lang.String> data()
@Deprecated public boolean containsKey(java.lang.Object key)
getOptional(String)
instead.containsKey
in interface java.util.Map<java.lang.String,java.lang.String>
containsKey
in class java.util.HashMap<java.lang.String,java.lang.String>
@Deprecated public java.lang.String get(java.lang.Object key)
getOptional(String)
instead.get
in interface java.util.Map<java.lang.String,java.lang.String>
get
in class java.util.HashMap<java.lang.String,java.lang.String>
public java.util.Optional<java.lang.String> apply(java.lang.String key)
public java.util.Optional<java.lang.String> getOptional(java.lang.String key)
@Deprecated public java.lang.String remove(java.lang.Object key)
removing(String...)
instead.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 Http.Flash removing(java.lang.String... keys)
@Deprecated public java.lang.String put(java.lang.String key, java.lang.String value)
adding(String, String)
instead.put
in interface java.util.Map<java.lang.String,java.lang.String>
put
in class java.util.HashMap<java.lang.String,java.lang.String>
@Deprecated public void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.String> values)
adding(Map)
instead.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 Http.Flash adding(java.lang.String key, java.lang.String value)
public Http.Flash adding(java.util.Map<java.lang.String,java.lang.String> values)
@Deprecated 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()
@Deprecated public int size()
Http.Flash
will not be a subclass of HashMap
in future Play releases.size
in interface java.util.Map<java.lang.String,java.lang.String>
size
in class java.util.HashMap<java.lang.String,java.lang.String>
@Deprecated public boolean isEmpty()
Http.Flash
will not be a subclass of HashMap
in future Play releases.isEmpty
in interface java.util.Map<java.lang.String,java.lang.String>
isEmpty
in class java.util.HashMap<java.lang.String,java.lang.String>
@Deprecated public boolean containsValue(java.lang.Object value)
Http.Flash
will not be a subclass of HashMap
in future Play releases.containsValue
in interface java.util.Map<java.lang.String,java.lang.String>
containsValue
in class java.util.HashMap<java.lang.String,java.lang.String>
@Deprecated public java.util.Set<java.lang.String> keySet()
Http.Flash
will not be a subclass of HashMap
in future Play releases.keySet
in interface java.util.Map<java.lang.String,java.lang.String>
keySet
in class java.util.HashMap<java.lang.String,java.lang.String>
@Deprecated public java.util.Collection<java.lang.String> values()
Http.Flash
will not be a subclass of HashMap
in future Play releases.values
in interface java.util.Map<java.lang.String,java.lang.String>
values
in class java.util.HashMap<java.lang.String,java.lang.String>
@Deprecated public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> entrySet()
Http.Flash
will not be a subclass of HashMap
in future Play releases.entrySet
in interface java.util.Map<java.lang.String,java.lang.String>
entrySet
in class java.util.HashMap<java.lang.String,java.lang.String>
@Deprecated public java.lang.String getOrDefault(java.lang.Object key, java.lang.String defaultValue)
Http.Flash
will not be a subclass of HashMap
in future Play releases.getOrDefault
in interface java.util.Map<java.lang.String,java.lang.String>
getOrDefault
in class java.util.HashMap<java.lang.String,java.lang.String>
@Deprecated public java.lang.String putIfAbsent(java.lang.String key, java.lang.String value)
Http.Flash
will not be a subclass of HashMap
in future Play releases.putIfAbsent
in interface java.util.Map<java.lang.String,java.lang.String>
putIfAbsent
in class java.util.HashMap<java.lang.String,java.lang.String>
@Deprecated public boolean remove(java.lang.Object key, java.lang.Object value)
Http.Flash
will not be a subclass of HashMap
in future Play releases.remove
in interface java.util.Map<java.lang.String,java.lang.String>
remove
in class java.util.HashMap<java.lang.String,java.lang.String>
@Deprecated public boolean replace(java.lang.String key, java.lang.String oldValue, java.lang.String newValue)
Http.Flash
will not be a subclass of HashMap
in future Play releases.replace
in interface java.util.Map<java.lang.String,java.lang.String>
replace
in class java.util.HashMap<java.lang.String,java.lang.String>
@Deprecated public java.lang.String replace(java.lang.String key, java.lang.String value)
Http.Flash
will not be a subclass of HashMap
in future Play releases.replace
in interface java.util.Map<java.lang.String,java.lang.String>
replace
in class java.util.HashMap<java.lang.String,java.lang.String>
@Deprecated public java.lang.String computeIfAbsent(java.lang.String key, java.util.function.Function<? super java.lang.String,? extends java.lang.String> mappingFunction)
Http.Flash
will not be a subclass of HashMap
in future Play releases.computeIfAbsent
in interface java.util.Map<java.lang.String,java.lang.String>
computeIfAbsent
in class java.util.HashMap<java.lang.String,java.lang.String>
@Deprecated public java.lang.String computeIfPresent(java.lang.String key, java.util.function.BiFunction<? super java.lang.String,? super java.lang.String,? extends java.lang.String> remappingFunction)
Http.Flash
will not be a subclass of HashMap
in future Play releases.computeIfPresent
in interface java.util.Map<java.lang.String,java.lang.String>
computeIfPresent
in class java.util.HashMap<java.lang.String,java.lang.String>
@Deprecated public java.lang.String compute(java.lang.String key, java.util.function.BiFunction<? super java.lang.String,? super java.lang.String,? extends java.lang.String> remappingFunction)
Http.Flash
will not be a subclass of HashMap
in future Play releases.compute
in interface java.util.Map<java.lang.String,java.lang.String>
compute
in class java.util.HashMap<java.lang.String,java.lang.String>
@Deprecated public java.lang.String merge(java.lang.String key, java.lang.String value, java.util.function.BiFunction<? super java.lang.String,? super java.lang.String,? extends java.lang.String> remappingFunction)
Http.Flash
will not be a subclass of HashMap
in future Play releases.merge
in interface java.util.Map<java.lang.String,java.lang.String>
merge
in class java.util.HashMap<java.lang.String,java.lang.String>
@Deprecated public void forEach(java.util.function.BiConsumer<? super java.lang.String,? super java.lang.String> action)
Http.Flash
will not be a subclass of HashMap
in future Play releases.forEach
in interface java.util.Map<java.lang.String,java.lang.String>
forEach
in class java.util.HashMap<java.lang.String,java.lang.String>
@Deprecated public void replaceAll(java.util.function.BiFunction<? super java.lang.String,? super java.lang.String,? extends java.lang.String> function)
Http.Flash
will not be a subclass of HashMap
in future Play releases.replaceAll
in interface java.util.Map<java.lang.String,java.lang.String>
replaceAll
in class java.util.HashMap<java.lang.String,java.lang.String>
@Deprecated public java.lang.Object clone()
Http.Flash
will not be a subclass of HashMap
in future Play releases.clone
in class java.util.HashMap<java.lang.String,java.lang.String>