public class JavaScriptReverseRouter extends Object
Constructor and Description |
---|
JavaScriptReverseRouter() |
Modifier and Type | Method and Description |
---|---|
static play.twirl.api.JavaScript |
create(String name,
String ajaxMethod,
String host,
play.api.routing.JavaScriptReverseRoute... routes)
Generates a JavaScript reverse router.
|
public static play.twirl.api.JavaScript create(String name, String ajaxMethod, 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