public Flash(play.api.mvc.Flash underlying) { this(Scala.asJava(underlying.data())); }
public Flash(play.api.mvc.Flash underlying) { this(Scala.asJava(underlying.data())); }
public Flash(play.api.mvc.Flash underlying) { this(Scala.asJava(underlying.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()); }
/** * @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; }
/** * Creates a new HTTP context. * * @param request the HTTP request */ public Context(Request request) { this.request = request; this.header = request._underlyingHeader(); this.id = header.id(); this.response = new Response(); this.session = new Session(JavaConversions.mapAsJavaMap(header.session().data())); this.flash = new Flash(JavaConversions.mapAsJavaMap(header.flash().data())); this.args = new HashMap<String,Object>(); this.args.putAll(JavaConversions.mapAsJavaMap(header.tags())); }
/** * 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; }