/** * Discards the existing session for this result. * * @return the new result */ public Result withNewSession() { return withSession(Collections.emptyMap()); }
/** * Discards the existing session for this result. * * @return the new result */ public Result withNewSession() { return withSession(Collections.emptyMap()); }
/** * Discards the existing session for this result. * * @return the new result */ public Result withNewSession() { return withSession(Collections.emptyMap()); }
/** * Sets a new session for this result, discarding the existing session. * * @param session the session to set with this result * @return the new result */ public Result withSession(Map<String, String> session) { return withSession(new Session(session)); }
/** * Sets a new session for this result, discarding the existing session. * * @param session the session to set with this result * @return the new result */ public Result withSession(Map<String, String> session) { return withSession(new Session(session)); }
/** * Sets a new session for this result, discarding the existing session. * * @param session the session to set with this result * @return the new result */ public Result withSession(Map<String, String> session) { return withSession(new Session(session)); }
/** * Adds values to the session. * * @param values A map with values to add to this result's session * @return A copy of this result with values added to its session scope. */ public Result addingToSession(Http.Request request, Map<String, String> values) { return withSession(session(request).adding(values)); }
/** * Removes values from the session. * * @param keys Keys to remove from session * @return A copy of this result with keys removed from its session scope. */ public Result removingFromSession(Http.Request request, String... keys) { return withSession(session(request).removing(keys)); }
/** * Adds values to the session. * * @param values A map with values to add to this result's session * @return A copy of this result with values added to its session scope. */ public Result addingToSession(Http.Request request, Map<String, String> values) { return withSession(session(request).adding(values)); }
/** * Adds values to the session. * * @param values A map with values to add to this result's session * @return A copy of this result with values added to its session scope. */ public Result addingToSession(Http.Request request, Map<String, String> values) { return withSession(session(request).adding(values)); }
/** * Removes values from the session. * * @param keys Keys to remove from session * @return A copy of this result with keys removed from its session scope. */ public Result removingFromSession(Http.Request request, String... keys) { return withSession(session(request).removing(keys)); }
/** * Removes values from the session. * * @param keys Keys to remove from session * @return A copy of this result with keys removed from its session scope. */ public Result removingFromSession(Http.Request request, String... keys) { return withSession(session(request).removing(keys)); }