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)
Generates a JavaScript reverse router.
|
static play.twirl.api.JavaScript |
create(java.lang.String name,
java.lang.String ajaxMethod,
play.api.routing.JavaScriptReverseRoute... routes)
Generates a JavaScript reverse router.
|
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 routerpublic static play.twirl.api.JavaScript create(java.lang.String name, java.lang.String ajaxMethod, play.api.routing.JavaScriptReverseRoute... routes)
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 routerpublic static play.twirl.api.JavaScript create(java.lang.String name, play.api.routing.JavaScriptReverseRoute... routes)
name
- the router's nameroutes
- the reverse routes for this router