Package play.http

Class DefaultActionCreator

  • All Implemented Interfaces:
    ActionCreator

    public class DefaultActionCreator
    extends Object
    implements ActionCreator
    A default implementation of the action creator.

    To create a custom action creator, extend this class or implement the ActionCreator interface directly.

    • Constructor Detail

      • DefaultActionCreator

        @Inject
        public DefaultActionCreator()
    • Method Detail

      • createAction

        public Action createAction​(Http.Request request,
                                   Method actionMethod)
        Description copied from interface: ActionCreator
        Call to create the root Action for a Java controller method call.

        The request and actionMethod values are passed for information. Implementations of this method should create an instance of Action that invokes the injected action delegate.

        Specified by:
        createAction in interface ActionCreator
        Parameters:
        request - The HTTP Request
        actionMethod - The action method containing the user code for this Action.
        Returns:
        The default implementation returns a raw Action calling the method.