Package org.javalite.activeweb
Class RouteUtil
java.lang.Object
org.javalite.activeweb.RouteUtil
This class exists to aggregate some common functions that are used by ActiveWeb as well as the Ope API plugin.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNamedMethods(Class<? extends AppController> controllerClass, String actionMethodName)
Gets methods matching an action name.static boolean
1.
-
Field Details
-
PRIMITIVES
-
-
Constructor Details
-
RouteUtil
public RouteUtil()
-
-
Method Details
-
getNamedMethods
public static List<Method> getNamedMethods(Class<? extends AppController> controllerClass, String actionMethodName)Gets methods matching an action name. Excludes: methods of superclasses from JavaLite and all non-public methods This method exists for caches controller methods in a ThreadLocal storage.- Returns:
- all methods matching a method name.
-
isAction
1. modifier (must be public) 2. return value (must be void) 3. Parameters (count must be 1 or 0), 4. Cannot be static 5. Cannot be abstract
-