Class ActionConfig
java.lang.Object
org.apache.struts2.util.location.Located
org.apache.struts2.config.entities.ActionConfig
- All Implemented Interfaces:
Serializable
,Locatable
Contains everything needed to configure and execute an action:
- methodName - the method name to execute on the action. If this is null, the Action will be cast to the Action Interface and the execute() method called
- clazz - the class name for the action
- params - the params to be set for this action just before execution
- results - the result map {String -> View class}
- resultParameters - params for results {String -> Map}
- typeConverter - the Ognl TypeConverter to use when getting/setting properties
- Version:
- $Revision$
- Author:
- Mike, Rainer Hermanns
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AllowedMethods
protected String
static final String
static final String
protected List<ExceptionMappingConfig>
protected List<InterceptorMapping>
protected String
protected String
protected String
protected Map<String,
ResultConfig> protected boolean
static final String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ActionConfig
(String packageName, String name, String className) protected
ActionConfig
(ActionConfig orig) Clones an ActionConfig, copying data into new maps and lists -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns name of the action methodgetName()
int
hashCode()
boolean
isAllowedMethod
(String method) boolean
toString()
Methods inherited from class org.apache.struts2.util.location.Located
getLocation, setLocation
-
Field Details
-
DEFAULT_METHOD
- See Also:
-
WILDCARD
- See Also:
-
DEFAULT_METHOD_REGEX
- See Also:
-
interceptors
-
params
-
results
-
exceptionMappings
-
className
-
methodName
-
packageName
-
name
-
strictMethodInvocation
protected boolean strictMethodInvocation -
allowedMethods
-
-
Constructor Details
-
ActionConfig
-
ActionConfig
Clones an ActionConfig, copying data into new maps and lists- Parameters:
orig
- The ActionConfig to clone- Since:
- 2.1
-
-
Method Details
-
getName
-
getClassName
-
getExceptionMappings
-
getInterceptors
-
getAllowedMethods
-
getMethodName
Returns name of the action method- Returns:
- name of the method to execute
-
getPackageName
- Returns:
- Returns the packageName.
-
getParams
-
getResults
-
isAllowedMethod
-
isStrictMethodInvocation
public boolean isStrictMethodInvocation() -
equals
-
hashCode
public int hashCode() -
toString
-