public abstract class AbstractCreateAction extends ActionCommandBase
Create (if necessary) and cache an Action
for this
request.
Constructor and Description |
---|
AbstractCreateAction() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(ActionContext actionCtx)
Create (if necessary) and cache an
Action for this
request. |
protected abstract Action |
getAction(ActionContext context,
String type,
ActionConfig actionConfig)
Create and return the appropriate
Action class for the
given type and actionConfig . |
execute
public boolean execute(ActionContext actionCtx) throws Exception
Create (if necessary) and cache an Action
for this
request.
execute
in interface ActionCommand
execute
in class ActionCommandBase
actionCtx
- The Context
for the current requestfalse
so that processing continuesException
- if there are any problems instantiating the Action
class.protected abstract Action getAction(ActionContext context, String type, ActionConfig actionConfig) throws Exception
Create and return the appropriate Action
class for the
given type
and actionConfig
.
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.
context
- The Context
for this requesttype
- Name of class to instantiateactionConfig
- The ActionConfig
for this requestException
- if there are any problems instantiating the Action
class.Copyright © 2000–2017 Apache Software Foundation. All rights reserved.