Package play.mvc
Class Http.Flash
java.lang.Object
play.mvc.Http.Flash
- Enclosing class:
- Http
HTTP Flash.
Flash data are encoded into an HTTP cookie, and can only contain simple String values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a new flash with the given key-value pair added.Returns a new flash with the values from the given map added.Deprecated.Deprecated as of 2.8.0.play.api.mvc.FlashasScala()Convert this flash to a Scala flash.data()Optionally returns the flash scope value associated with a key.getOptional(String key) Deprecated.Deprecated as of 2.8.0.Returns a new flash with the given keys removed.
-
Constructor Details
-
Flash
public Flash() -
Flash
-
Flash
public Flash(play.api.mvc.Flash underlying)
-
-
Method Details
-
data
-
get
Optionally returns the flash scope value associated with a key. -
getOptional
Deprecated.Deprecated as of 2.8.0. Renamed toget(String).Optionally returns the flash scope value associated with a key. -
apply
Deprecated.Deprecated as of 2.8.0. Useget(String)instead.Optionally returns the flash value associated with a key. -
removing
Returns a new flash with the given keys removed. -
adding
Returns a new flash with the given key-value pair added. -
adding
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.
-