@Override @Deprecated public Session session() { return wrapped.session(); }
@Override @Deprecated public Session session() { return wrapped.session(); }
@Override @Deprecated public Session session() { return wrapped.session(); }
@Override public Session session() { return wrapped.session(); }
/** * Retrieves the username from the HTTP context; the default is to read from the session cookie. * * @param ctx the current request context * @return null if the user is not authenticated. * * @deprecated Deprecated as of 2.7.0. Use {@link #getUsername(Request)} instead. */ @Deprecated public String getUsername(Context ctx) { return ctx.session().get("username"); }
/** * @param wrapped */ public WrappedContext(Context wrapped) { super(wrapped.id(), wrapped._requestHeader(), wrapped.request(), wrapped.session(), wrapped.flash(), wrapped.args); this.args = wrapped.args; this.wrapped = wrapped; }
/** * Returns the current HTTP session. * * @return the session * * @deprecated Deprecated as of 2.7.0. Use {@link Request#session()} and {@link Result} instead. */ @Deprecated public static Session session() { return Http.Context.current().session(); }
/** * @param wrapped the context the created instance will wrap */ public WrappedContext(Context wrapped) { super(wrapped.id(), wrapped.request().asScala(), wrapped.request(), wrapped.session(), wrapped.flash(), wrapped.args, wrapped.lang, wrapped.components); this.args = wrapped.args; this.wrapped = wrapped; }
/** * Returns the current session. * * @return the current session. * * @deprecated Deprecated as of 2.7.0. Use {@link Result} instead. */ @Deprecated public static Session session() { return Context.current().session(); }
/** * Retrieves the username from the HTTP context; the default is to read from the session cookie. * * @param ctx the current request context * @return null if the user is not authenticated. * * @deprecated Deprecated as of 2.7.0. Use {@link #getUsername(Request)} instead. */ @Deprecated public String getUsername(Context ctx) { return ctx.session().get("username"); }
/** * Returns the current HTTP session. * * @return the session * * @deprecated Deprecated as of 2.7.0. Use {@link Request#session()} and {@link Result} instead. */ @Deprecated public static Session session() { return Http.Context.current().session(); }
/** * @param wrapped the context the created instance will wrap */ public WrappedContext(Context wrapped) { super(wrapped.id(), wrapped.request().asScala(), wrapped.request(), wrapped.session(), wrapped.flash(), wrapped.args, wrapped.lang, wrapped.components); this.args = wrapped.args; this.wrapped = wrapped; }
/** * Returns the current session. * * @return the current session. * * @deprecated Deprecated as of 2.7.0. Use {@link Result} instead. */ @Deprecated public static Session session() { return Context.current().session(); }
/** * Retrieves the username from the HTTP context; the default is to read from the session cookie. * * @return null if the user is not authenticated. */ public String getUsername(Context ctx) { return ctx.session().get("username"); }
/** * Returns the current session. * * @return the current session. * * @deprecated Deprecated as of 2.7.0. Use {@link Result} instead. */ @Deprecated public static Session session() { return Context.current().session(); }
/** * Returns the current HTTP session. */ public static Session session() { return Http.Context.current().session(); }
/** * Returns the current session. */ public static Session session() { return Context.current().session(); }
/** * Returns the current HTTP session. * * @return the session * * @deprecated Deprecated as of 2.7.0. Use {@link Request#session()} and {@link Result} instead. */ @Deprecated public static Session session() { return Http.Context.current().session(); }
/** * Retrieves the username from the HTTP context; the default is to read from the session cookie. * * @param ctx the current request context * @return null if the user is not authenticated. * * @deprecated Deprecated as of 2.7.0. Use {@link #getUsername(Request)} instead. */ @Deprecated public String getUsername(Context ctx) { return ctx.session().get("username"); }
/** * @param wrapped the context the created instance will wrap */ public WrappedContext(Context wrapped) { super(wrapped.id(), wrapped.request().asScala(), wrapped.request(), wrapped.session(), wrapped.flash(), wrapped.args, wrapped.lang, wrapped.components); this.args = wrapped.args; this.wrapped = wrapped; }