Package play.mvc
Class Http.Flash
- Object
-
- play.mvc.Http.Flash
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Http.Flash
adding(String key, String value)
Returns a new flash with the given key-value pair added.Http.Flash
adding(Map<String,String> values)
Returns a new flash with the values from the given map added.Optional<String>
apply(String key)
Deprecated.Deprecated as of 2.8.0.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.Http.Flash
removing(String... keys)
Returns a new flash with the given keys removed.
-
-
-
Method Detail
-
get
public Optional<String> get(String key)
Optionally returns the flash scope value associated with a key.
-
getOptional
@Deprecated public Optional<String> getOptional(String key)
Deprecated.Deprecated as of 2.8.0. Renamed toget(String)
.Optionally returns the flash scope value associated with a key.
-
apply
@Deprecated public Optional<String> apply(String key)
Deprecated.Deprecated as of 2.8.0. Useget(String)
instead.Optionally returns the flash value associated with a key.
-
removing
public Http.Flash removing(String... keys)
Returns a new flash with the given keys removed.
-
adding
public Http.Flash adding(String key, String value)
Returns a new flash with the given key-value pair added.
-
adding
public Http.Flash adding(Map<String,String> values)
Returns a new flash with the values from the given map added.
-
asScala
public play.api.mvc.Flash asScala()
Convert this flash to a Scala flash.- Returns:
- the Scala flash.
-
-