/** * @return the cookies in a Java map */ public Map<String,String> flash() { return Scala.asJava(req.flash().data()); }
/** * @return the cookies in a Java map */ public Map<String,String> flash() { return Scala.asJava(req.flash().data()); }
/** * @return the cookies in a Java map */ public Map<String,String> flash() { return Scala.asJava(req.flash().data()); }
/** * Sets a cookie in the request. * @param key the key for the cookie * @param value the value for the cookie * @return the builder instance */ public RequestBuilder flash(String key, String value) { scala.collection.immutable.Map<String,String> data = req.flash().data(); scala.collection.immutable.Map<String,String> newData = data.updated(key, value); play.api.mvc.Flash newFlash = new play.api.mvc.Flash(newData); attr(new TypedKey<>(RequestAttrKey.Flash()), new AssignedCell<>(newFlash)); return this; }
/** * Sets a cookie in the request. * @param key the key for the cookie * @param value the value for the cookie * @return the builder instance */ public RequestBuilder flash(String key, String value) { scala.collection.immutable.Map<String,String> data = req.flash().data(); scala.collection.immutable.Map<String,String> newData = data.updated(key, value); play.api.mvc.Flash newFlash = new play.api.mvc.Flash(newData); attr(new TypedKey<>(RequestAttrKey.Flash()), new AssignedCell<>(newFlash)); return this; }
/** * Sets a cookie in the request. * @param key the key for the cookie * @param value the value for the cookie * @return the builder instance */ public RequestBuilder flash(String key, String value) { scala.collection.immutable.Map<String,String> data = req.flash().data(); scala.collection.immutable.Map<String,String> newData = data.updated(key, value); play.api.mvc.Flash newFlash = new play.api.mvc.Flash(newData); attr(new TypedKey<>(RequestAttrKey.Flash()), new AssignedCell<>(newFlash)); return this; }