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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected AllowedMethodsprotected Stringstatic final Stringstatic final Stringprotected List<ExceptionMappingConfig>protected List<InterceptorMapping>protected Stringprotected Stringprotected Stringprotected Map<String,ResultConfig> protected booleanstatic final String
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedActionConfig(String packageName, String name, String className) protectedActionConfig(ActionConfig orig) Clones an ActionConfig, copying data into new maps and lists
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns name of the action methodgetName()inthashCode()booleanisAllowedMethod(String method) booleantoString()Methods inherited from class org.apache.struts2.util.location.LocatedgetLocation, setLocation
- 
Field Details- 
DEFAULT_METHOD- See Also:
 
- 
WILDCARD- See Also:
 
- 
DEFAULT_METHOD_REGEX- See Also:
 
- 
interceptors
- 
params
- 
results
- 
exceptionMappings
- 
className
- 
methodName
- 
packageName
- 
name
- 
strictMethodInvocationprotected boolean strictMethodInvocation
- 
allowedMethods
 
- 
- 
Constructor Details- 
ActionConfig
- 
ActionConfigClones 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
- 
getMethodNameReturns name of the action method- Returns:
- name of the method to execute
 
- 
getPackageName- Returns:
- Returns the packageName.
 
- 
getParams
- 
getResults
- 
isAllowedMethod
- 
isStrictMethodInvocationpublic boolean isStrictMethodInvocation()
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-