/** * Returns a value from the flash scope. * * @param key the key to look up in the flash scope * @return the value corresponding to <code>key</code> from the flash scope, or null if there was none * * @deprecated Deprecated as of 2.7.0. Use {@link Result} instead. */ @Deprecated public static String flash(String key) { return flash().get(key); }
/** * Returns a value from the session. * * @param key the session key * @return the value for the provided key, or null if there was no value * * @deprecated Deprecated as of 2.7.0. Use {@link Result} instead. */ @Deprecated public static String session(String key) { return session().get(key); }
/** * Generates a 501 NOT_IMPLEMENTED simple result. * * @deprecated Deprecated as of 2.7.0. Use {@link #TODO(Request)} instead. */ @Deprecated public static Result TODO() { return TODO(Http.Context.current().request()); }
/** * Binds request data to this form - that is, handles form submission. * * @return a copy of this form filled with the new data */ @Override public DynamicForm bindFromRequest(String... allowedFields) { return bind(requestData(play.mvc.Controller.request()), allowedFields); }
/** * Generates a 501 NOT_IMPLEMENTED simple result. */ public static Result TODO(Request request) { return status(NOT_IMPLEMENTED, views.html.defaultpages.todo.render(request.asScala())); }
/** * Generates a 501 NOT_IMPLEMENTED simple result. */ public static Result TODO(Request request) { return status(NOT_IMPLEMENTED, views.html.defaultpages.todo.render(request.asScala())); }
/** * Binds request data to this form - that is, handles form submission. * * @return a copy of this form filled with the new data */ @Override public DynamicForm bindFromRequest(String... allowedFields) { return bind(requestData(play.mvc.Controller.request()), allowedFields); }
/** * Binds request data to this form - that is, handles form submission. * * @param allowedFields the fields that should be bound to the form, all fields if not specified. * @return a copy of this form filled with the new data * * @deprecated Deprecated as of 2.7.0. Use {@link #bindFromRequest(Http.Request, String...)} instead. */ @Deprecated public Form<T> bindFromRequest(String... allowedFields) { return bind(play.mvc.Controller.ctx().messages().lang(), play.mvc.Controller.request().attrs(), requestData(play.mvc.Controller.request()), requestFileData(play.mvc.Controller.request()), allowedFields); }
/** * Returns a value from the flash scope. */ public static String flash(String key) { return flash().get(key); }
/** * Returns a value from the session. * * @param key the session key * @return the value for the provided key, or null if there was no value * * @deprecated Deprecated as of 2.7.0. Use {@link Result} instead. */ @Deprecated public static String session(String key) { return session().get(key); }
/** * Generates a 501 NOT_IMPLEMENTED simple result. * * @deprecated Deprecated as of 2.7.0. Use {@link #TODO(Request)} instead. */ @Deprecated public static Result TODO() { return TODO(Http.Context.current().request()); }
/** * Generates a 501 NOT_IMPLEMENTED simple result. */ public static Result TODO(Request request) { return status(NOT_IMPLEMENTED, views.html.defaultpages.todo.render(request.asScala())); }
/** * Binds request data to this form - that is, handles form submission. * * @return a copy of this form filled with the new data */ public Form<T> bindFromRequest(String... allowedFields) { return bind(requestData(play.mvc.Controller.request()), allowedFields); }
/** * Binds request data to this form - that is, handles form submission. * * @param allowedFields the fields that should be bound to the form, all fields if not specified. * @return a copy of this form filled with the new data * * @deprecated Deprecated as of 2.7.0. Use {@link #bindFromRequest(Http.Request, String...)} instead. */ @Deprecated public Form<T> bindFromRequest(String... allowedFields) { return bind(play.mvc.Controller.ctx().messages().lang(), play.mvc.Controller.request().attrs(), requestData(play.mvc.Controller.request()), requestFileData(play.mvc.Controller.request()), allowedFields); }
/** * Returns a value from the flash scope. * * @param key the key to look up in the flash scope * @return the value corresponding to <code>key</code> from the flash scope, or null if there was none * * @deprecated Deprecated as of 2.7.0. Use {@link Result} instead. */ @Deprecated public static String flash(String key) { return flash().get(key); }
/** * Returns a value from the session. * * @param key the session key * @return the value for the provided key, or null if there was no value * * @deprecated Deprecated as of 2.7.0. Use {@link Result} instead. */ @Deprecated public static String session(String key) { return session().get(key); }
/** * Generates a 501 NOT_IMPLEMENTED simple result. * * @deprecated Deprecated as of 2.7.0. Use {@link #TODO(Request)} instead. */ @Deprecated public static Result TODO() { return TODO(Http.Context.current().request()); }