Package play.mvc

Class Http.Flash

  • Enclosing class:
    Http

    public static class Http.Flash
    extends Object
    HTTP Flash.

    Flash data are encoded into an HTTP cookie, and can only contain simple String values.

    • Constructor Detail

      • Flash

        public Flash()
      • Flash

        public Flash​(play.api.mvc.Flash underlying)
    • Method Detail

      • get

        public Optional<String> get​(String key)
        Optionally returns the flash scope 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.