Class HeaderAction

  • All Implemented Interfaces:
    Executable

    public class HeaderAction
    extends AbstractAction
    Action rule for setting headers in response.

    Created: 2016. 08. 23.

    Since:
    3.0.0
    • Constructor Detail

      • HeaderAction

        public HeaderAction​(HeaderActionRule headerActionRule,
                            ActionList parent)
        Instantiates a new HeaderAction.
        Parameters:
        headerActionRule - the header action rule
        parent - the parent
    • Method Detail

      • execute

        public java.lang.Object execute​(Activity activity)
                                 throws java.lang.Exception
        Description copied from interface: Executable
        Execute this action.
        Parameters:
        activity - the activity
        Returns:
        the result of action execution
        Throws:
        java.lang.Exception - the exception
        ActionExecutionException - the action execution exception
      • getHeaderActionRule

        public HeaderActionRule getHeaderActionRule()
        Returns the header action rule.
        Returns:
        the headerActionRule
      • isHidden

        public boolean isHidden()
        Description copied from interface: Executable
        Returns whether this action is hidden.
        Returns:
        true, if is hidden action
      • getActionType

        public ActionType getActionType()
        Description copied from interface: Executable
        Gets the Action Type.
        Returns:
        the Action Type
      • getActionRule

        public <T> T getActionRule()
        Description copied from interface: Executable
        Gets the action rule.
        Type Parameters:
        T - the generic type
        Returns:
        the action rule
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object