Class ActionFormResult


  • public class ActionFormResult
    extends Object
    Class used purely to represent the result of an action being executed via the ActionFormProcessor. This class holds the Action executed and any optional results stored by the action.
    Author:
    Gavin Cornwell
    • Constructor Detail

      • ActionFormResult

        public ActionFormResult​(Action action,
                                Object result)
        Default constructor.
        Parameters:
        action - The action that was executed, can not be null
        result - The result from the action, can be null
    • Method Detail

      • getAction

        public Action getAction()
        Returns the action that was executed
        Returns:
        The executed Action
      • getResult

        public Object getResult()
        Returns the result from the executed action
        Returns:
        The result or null if there were no results