Package play.mvc

Class Action<T>

    • Field Detail

      • configuration

        public T configuration
        The action configuration - typically the annotation used to decorate the action method.
      • annotatedElement

        public AnnotatedElement annotatedElement
        Where an action was defined.
      • precursor

        public Action<?> precursor
        The precursor action.

        If this action was called in a chain then this will contain the value of the action that is called before this action. If no action was called first, then this value will be null.

      • delegate

        public Action<?> delegate
        The wrapped action.

        If this action was called in a chain then this will contain the value of the action that is called after this action. If there is no action left to be called, then this value will be null.

    • Constructor Detail

      • Action

        public Action()
    • Method Detail

      • setContextComponents

        @Deprecated
        public void setContextComponents​(play.core.j.JavaContextComponents contextComponents)
        Deprecated.
        Deprecated as of 2.8.0. Method does nothing.
      • call

        public abstract CompletionStage<Result> call​(Http.Request req)
        Executes this action with the given HTTP request and returns the result.
        Parameters:
        req - the http request with which to execute this action
        Returns:
        a promise to the action's result