public class JavaScriptReverseRouter
extends java.lang.Object
Constructor and Description |
---|
JavaScriptReverseRouter() |
Modifier and Type | Method and Description |
---|---|
static play.twirl.api.JavaScript |
create(java.lang.String name,
play.api.routing.JavaScriptReverseRoute... routes)
Deprecated.
Deprecated as of 2.7.0. Use
create(String, String, String, JavaScriptReverseRoute...) instead. |
static play.twirl.api.JavaScript |
create(java.lang.String name,
java.lang.String ajaxMethod,
play.api.routing.JavaScriptReverseRoute... routes)
Deprecated.
Deprecated as of 2.7.0. Use
create(String, String, String, JavaScriptReverseRoute...) instead. |
static play.twirl.api.JavaScript |
create(java.lang.String name,
java.lang.String ajaxMethod,
java.lang.String host,
play.api.routing.JavaScriptReverseRoute... routes)
Generates a JavaScript reverse router.
|
public static play.twirl.api.JavaScript create(java.lang.String name, java.lang.String ajaxMethod, java.lang.String host, play.api.routing.JavaScriptReverseRoute... routes)
name
- the router's nameajaxMethod
- which asynchronous call method the user's browser will use (e.g. "jQuery.ajax")host
- the host to use for the reverse routeroutes
- the reverse routes for this router@Deprecated public static play.twirl.api.JavaScript create(java.lang.String name, java.lang.String ajaxMethod, play.api.routing.JavaScriptReverseRoute... routes)
create(String, String, String, JavaScriptReverseRoute...)
instead.name
- the router's nameajaxMethod
- which asynchronous call method the user's browser will use (e.g. "jQuery.ajax")routes
- the reverse routes for this router@Deprecated public static play.twirl.api.JavaScript create(java.lang.String name, play.api.routing.JavaScriptReverseRoute... routes)
create(String, String, String, JavaScriptReverseRoute...)
instead.name
- the router's nameroutes
- the reverse routes for this router