Package ch.autumo.beetroot.routing
Class Route
java.lang.Object
ch.autumo.beetroot.routing.Route
Route.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate default route.Create route.Create route.Create route. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>Object[]intgetRoute()voidsetPriority(int priority)
-
Field Details
-
PRIORITY
public static final int PRIORITY- See Also:
-
DEFAULT_PRIORITY
public static final int DEFAULT_PRIORITY- See Also:
-
-
Constructor Details
-
Route
Create default route. Constructor should be used only for default routes. Handler and init parameters are used from configuration.- Parameters:
route- route, e.g. '/:lang/tasks/index'.
-
Route
Create route. Should be used for specific routes that address specific pages.- Parameters:
route- route, e.g. '/:lang/tasks/index'.handler- handler classentityName- entity name
-
Route
Create route. Should be used for specific routes that address specific pages.- Parameters:
route- route, e.g. '/:lang/tasks/index'.handler- handler classinitParameter- init parameter, first one must be entity name
-
Route
Create route. For specific parameters.- Parameters:
route- route, e.g. '/:lang/tasks/index'.priority- lookup priority, default is 100handler- handlerinitParameter- init parameter, first one must be entity name
-
-
Method Details
-
getRoute
-
getPriority
public int getPriority() -
setPriority
public void setPriority(int priority) -
getHandler
-
getInitParameter
-