Package play.routing
Class JavaScriptReverseRouter
- Object
-
- play.routing.JavaScriptReverseRouter
-
public class JavaScriptReverseRouter extends Object
Helpers for creating JavaScript reverse routers
-
-
Constructor Summary
Constructors Constructor Description JavaScriptReverseRouter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static play.twirl.api.JavaScript
create(String name, String ajaxMethod, String host, play.api.routing.JavaScriptReverseRoute... routes)
Generates a JavaScript reverse router.
-
-
-
Method Detail
-
create
public static play.twirl.api.JavaScript create(String name, String ajaxMethod, String host, play.api.routing.JavaScriptReverseRoute... routes)
Generates a JavaScript reverse router.- Parameters:
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- Returns:
- the router
-
-