/** * Returns a new flash with the given keys removed. */ public Flash removing(String... keys) { return new play.api.mvc.Flash(Scala.asScala(this)).$minus$minus(Scala.toSeq(keys)).asJava(); }
/** * Returns a new flash with the given key-value pair added. */ public Flash adding(String key, String value) { return new play.api.mvc.Flash(Scala.asScala(this)).$plus(Scala.Tuple(key, value)).asJava(); }
/** * Returns a new flash with the given key-value pair added. */ public Flash adding(String key, String value) { return new play.api.mvc.Flash(Scala.asScala(this)).$plus(Scala.Tuple(key, value)).asJava(); }
/** * Returns a new flash with the values from the given map added. */ public Flash adding(Map<String, String> values) { return new play.api.mvc.Flash(Scala.asScala(this)).$plus$plus(Scala.asScala(values)).asJava(); }
/** * Returns a new flash with the given keys removed. */ public Flash removing(String... keys) { return new play.api.mvc.Flash(Scala.asScala(this)).$minus$minus(Scala.toSeq(keys)).asJava(); }
/** * Returns a new flash with the values from the given map added. */ public Flash adding(Map<String, String> values) { return new play.api.mvc.Flash(Scala.asScala(this)).$plus$plus(Scala.asScala(values)).asJava(); }
/** * Returns a new flash with the values from the given map added. */ public Flash adding(Map<String, String> values) { return new play.api.mvc.Flash(Scala.asScala(this)).$plus$plus(Scala.asScala(values)).asJava(); }
/** * Returns a new flash with the given keys removed. */ public Flash removing(String... keys) { return new play.api.mvc.Flash(Scala.asScala(this)).$minus$minus(Scala.toSeq(keys)).asJava(); }
/** * Returns a new flash with the given key-value pair added. */ public Flash adding(String key, String value) { return new play.api.mvc.Flash(Scala.asScala(this)).$plus(Scala.Tuple(key, value)).asJava(); }
/** * Parses the Flash cookie and returns the Flash data. The request's flash cookie is stored in an attribute indexed by * {@link RequestAttrKey#Flash()}}. The attribute uses a {@link Cell} to store the flash, to allow it to be evaluated on-demand. */ default Flash flash() { return attrs().get(RequestAttrKey.Flash().asJava()).value().asJava(); }
/** * Parses the Flash cookie and returns the Flash data. The request's flash cookie is stored in an attribute indexed by * {@link RequestAttrKey#Flash()}}. The attribute uses a {@link Cell} to store the flash, to allow it to be evaluated on-demand. */ default Flash flash() { return attrs().get(RequestAttrKey.Flash().asJava()).value().asJava(); }
/** * Parses the Flash cookie and returns the Flash data. The request's flash cookie is stored in an attribute indexed by * {@link RequestAttrKey#Flash()}}. The attribute uses a {@link Cell} to store the flash, to allow it to be evaluated on-demand. */ default Flash flash() { return attrs().get(RequestAttrKey.Flash().asJava()).value().asJava(); }