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