Constructor and Description |
---|
Flash() |
Flash(play.api.mvc.Flash underlying) |
Flash(Map<String,String> data) |
Modifier and Type | Method and Description |
---|---|
Http.Flash |
adding(Map<String,String> values)
Returns a new flash with the values from the given map added.
|
Http.Flash |
adding(String key,
String value)
Returns a new flash with the given key-value pair added.
|
Optional<String> |
apply(String key)
Deprecated.
Deprecated as of 2.8.0. Use
get(String) instead. |
play.api.mvc.Flash |
asScala()
Convert this flash to a Scala flash.
|
Map<String,String> |
data() |
Optional<String> |
get(String key)
Optionally returns the flash scope value associated with a key.
|
Optional<String> |
getOptional(String key)
Deprecated.
Deprecated as of 2.8.0. Renamed to
get(String) . |
Http.Flash |
removing(String... keys)
Returns a new flash with the given keys removed.
|
public Optional<String> get(String key)
@Deprecated public Optional<String> getOptional(String key)
get(String)
.@Deprecated public Optional<String> apply(String key)
get(String)
instead.public Http.Flash removing(String... keys)
public Http.Flash adding(String key, String value)
public Http.Flash adding(Map<String,String> values)
public play.api.mvc.Flash asScala()