Class CreateAction
java.lang.Object
org.apache.struts.chain.commands.ActionCommandBase
org.apache.struts.chain.commands.AbstractCreateAction
org.apache.struts.chain.commands.servlet.CreateAction
- All Implemented Interfaces:
Command<ActionContext>,ActionCommand
Concrete implementation of AbstractCreateAction for use in
a Servlet API chain. Expects that the ActionContext passed into it can
safely be cast to ServletActionContext.
-
Field Summary
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ActioncreateAction(ActionContext context, String type) Invoked bygetActionwhen theActionactually has to be created.protected ActiongetAction(ActionContext context, String type, ActionConfig actionConfig) Create and return the appropriateActionclass for the giventypeandactionConfig.Methods inherited from class org.apache.struts.chain.commands.AbstractCreateAction
execute_Methods inherited from class org.apache.struts.chain.commands.ActionCommandBase
execute
-
Constructor Details
-
CreateAction
public CreateAction()
-
-
Method Details
-
getAction
protected Action getAction(ActionContext context, String type, ActionConfig actionConfig) throws Exception Description copied from class:AbstractCreateActionCreate and return the appropriate
Actionclass for the giventypeandactionConfig.NOTE: The dependence on ActionServlet suggests that this should be broken up along the lines of the other Abstract/concrete pairs in the org.apache.struts.chain.commands package.
- Specified by:
getActionin classAbstractCreateAction- Parameters:
context- TheContextfor this requesttype- Name of class to instantiateactionConfig- TheActionConfigfor this request- Returns:
- Instantiated Action class
- Throws:
Exception- if there are any problems instantiating the Action class.
-
createAction
Invoked by
getActionwhen theActionactually has to be created. If the instance is already created and cached, this method will not be called.- Parameters:
context- TheContextfor this requesttype- Name of class to instantiate- Returns:
- Instantiated Action class
- Throws:
Exception- if there are any problems instantiating the Action class.- Since:
- Struts 1.3.7
-