play
Class Routes

java.lang.Object
  extended by play.Routes

public class Routes
extends java.lang.Object

Helper utilities related to `Router`.


Field Summary
static java.lang.String ROUTE_ACTION_METHOD
           
static java.lang.String ROUTE_CONTROLLER
           
static java.lang.String ROUTE_PATTERN
           
static java.lang.String ROUTE_VERB
           
 
Constructor Summary
Routes()
           
 
Method Summary
static java.lang.String javascriptRouter(java.lang.String name, play.core.Router.JavascriptReverseRoute... routes)
          Generates a JavaScript router.
static java.lang.String javascriptRouter(java.lang.String name, java.lang.String ajaxMethod, play.core.Router.JavascriptReverseRoute... routes)
          Generates a JavaScript router.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROUTE_VERB

public static final java.lang.String ROUTE_VERB
See Also:
Constant Field Values

ROUTE_PATTERN

public static final java.lang.String ROUTE_PATTERN
See Also:
Constant Field Values

ROUTE_CONTROLLER

public static final java.lang.String ROUTE_CONTROLLER
See Also:
Constant Field Values

ROUTE_ACTION_METHOD

public static final java.lang.String ROUTE_ACTION_METHOD
See Also:
Constant Field Values
Constructor Detail

Routes

public Routes()
Method Detail

javascriptRouter

public static java.lang.String javascriptRouter(java.lang.String name,
                                                play.core.Router.JavascriptReverseRoute... routes)
Generates a JavaScript router.


javascriptRouter

public static java.lang.String javascriptRouter(java.lang.String name,
                                                java.lang.String ajaxMethod,
                                                play.core.Router.JavascriptReverseRoute... routes)
Generates a JavaScript router.