Package play.mvc
Class ActionInvoker
- java.lang.Object
-
- play.mvc.ActionInvoker
-
public class ActionInvoker extends java.lang.ObjectInvoke an action after an HTTP request.
-
-
Constructor Summary
Constructors Constructor Description ActionInvoker(SessionStore sessionStore)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.reflect.MethodfindActionMethod(java.lang.String name, java.lang.Class clazz)Find the first public method of a controller classstatic java.lang.Object[]getActionMethod(java.lang.String fullAction)static java.lang.Object[]getActionMethodArgs(Http.Request request, Scope.Session session, java.lang.reflect.Method method)static voidinferResult(java.lang.Object o)voidinvoke(Http.Request request, Http.Response response)static voidresolve(Http.Request request)
-
-
-
Constructor Detail
-
ActionInvoker
@Inject public ActionInvoker(SessionStore sessionStore)
-
-
Method Detail
-
resolve
public static void resolve(Http.Request request)
-
invoke
public void invoke(Http.Request request, Http.Response response)
-
findActionMethod
public static java.lang.reflect.Method findActionMethod(java.lang.String name, java.lang.Class clazz)Find the first public method of a controller class- Parameters:
name- The method nameclazz- The class- Returns:
- The method or null
-
inferResult
public static void inferResult(java.lang.Object o)
-
getActionMethod
public static java.lang.Object[] getActionMethod(java.lang.String fullAction)
-
getActionMethodArgs
public static java.lang.Object[] getActionMethodArgs(Http.Request request, Scope.Session session, java.lang.reflect.Method method)
-
-