Class Route
java.lang.Object
ch.autumo.beetroot.routing.Route
Route.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault route priority.static final intPriority of an explicitly registered route. -
Constructor Summary
ConstructorsConstructorDescriptionCreate default route.Create route.Create route.Create route. -
Method Summary
Modifier and TypeMethodDescriptionClass<?> Returns the handler value.Object[]Returns the init parameter value.intReturns the priority value.getRoute()Returns the route value.voidsetPriority(int priority) Sets the priority value.
-
Field Details
-
PRIORITY
public static final int PRIORITYPriority of an explicitly registered route.- See Also:
-
DEFAULT_PRIORITY
public static final int DEFAULT_PRIORITYDefault route 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
-
Route
-
Route
-
-
Method Details
-
getRoute
-
getPriority
public int getPriority()Returns the priority value.- Returns:
- the priority value
-
setPriority
public void setPriority(int priority) Sets the priority value.- Parameters:
priority- the new priority value
-
getHandler
-
getInitParameter
Returns the init parameter value.- Returns:
- the init parameter value
-