Package play.routing
Class JavaScriptReverseRouter
java.lang.Object
play.routing.JavaScriptReverseRouter
Helpers for creating JavaScript reverse routers
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JavaScriptReverseRouter
public JavaScriptReverseRouter()
-
-
Method Details
-
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
-