/** * Generates a JavaScript reverse router. * * @param name the router's name * @param routes the reverse routes for this router * @return the router * * @deprecated Deprecated as of 2.7.0. Use {@link #create(String, String, String, JavaScriptReverseRoute...)} instead. */ @Deprecated public static JavaScript create(String name, JavaScriptReverseRoute... routes) { return create(name, "jQuery.ajax", routes); } }
/** * Generates a JavaScript reverse router. * * @param name the router's name * @param routes the reverse routes for this router * @return the router * * @deprecated Deprecated as of 2.7.0. Use {@link #create(String, String, String, JavaScriptReverseRoute...)} instead. */ @Deprecated public static JavaScript create(String name, JavaScriptReverseRoute... routes) { return create(name, "jQuery.ajax", routes); } }
/** * Generates a JavaScript reverse router. * * @param name the router's name * @param routes the reverse routes for this router * @return the router * * @deprecated Deprecated as of 2.7.0. Use {@link #create(String, String, String, JavaScriptReverseRoute...)} instead. */ @Deprecated public static JavaScript create(String name, JavaScriptReverseRoute... routes) { return create(name, "jQuery.ajax", routes); } }
/** * Generates a JavaScript reverse router. * * @param name the router's name * @param ajaxMethod which asynchronous call method the user's browser will use (e.g. "jQuery.ajax") * @param routes the reverse routes for this router * @return the router * * @deprecated Deprecated as of 2.7.0. Use {@link #create(String, String, String, JavaScriptReverseRoute...)} instead. */ @Deprecated public static JavaScript create(String name, String ajaxMethod, JavaScriptReverseRoute... routes) { return create(name, ajaxMethod, play.mvc.Http.Context.current().request().host(), routes); } // TODO:
/** * Generates a JavaScript reverse router. * * @param name the router's name * @param ajaxMethod which asynchronous call method the user's browser will use (e.g. "jQuery.ajax") * @param routes the reverse routes for this router * @return the router * * @deprecated Deprecated as of 2.7.0. Use {@link #create(String, String, String, JavaScriptReverseRoute...)} instead. */ @Deprecated public static JavaScript create(String name, String ajaxMethod, JavaScriptReverseRoute... routes) { return create(name, ajaxMethod, play.mvc.Http.Context.current().request().host(), routes); } // TODO:
/** * Generates a JavaScript reverse router. * * @param name the router's name * @param ajaxMethod which asynchronous call method the user's browser will use (e.g. "jQuery.ajax") * @param routes the reverse routes for this router * @return the router * * @deprecated Deprecated as of 2.7.0. Use {@link #create(String, String, String, JavaScriptReverseRoute...)} instead. */ @Deprecated public static JavaScript create(String name, String ajaxMethod, JavaScriptReverseRoute... routes) { return create(name, ajaxMethod, play.mvc.Http.Context.current().request().host(), routes); } // TODO: