com.opensymphony.xwork2.config.entities
Class ActionConfig
java.lang.Object
com.opensymphony.xwork2.util.location.Located
com.opensymphony.xwork2.config.entities.ActionConfig
- All Implemented Interfaces:
- Locatable, Serializable
public class ActionConfig
- extends Located
- implements Serializable
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: 1756 $
- Author:
- Mike, Rainer Hermanns
- See Also:
- Serialized Form
Fields inherited from class com.opensymphony.xwork2.util.location.Located |
location |
WILDCARD
public static final String WILDCARD
- See Also:
- Constant Field Values
interceptors
protected List<InterceptorMapping> interceptors
params
protected Map<String,String> params
results
protected Map<String,ResultConfig> results
exceptionMappings
protected List<ExceptionMappingConfig> exceptionMappings
className
protected String className
methodName
protected String methodName
packageName
protected String packageName
name
protected String name
allowedMethods
protected Set<String> allowedMethods
ActionConfig
protected ActionConfig(String packageName,
String name,
String className)
ActionConfig
protected ActionConfig(ActionConfig orig)
- Clones an ActionConfig, copying data into new maps and lists
- Parameters:
orig
- The ActionConfig to clone
getName
public String getName()
getClassName
public String getClassName()
getExceptionMappings
public List<ExceptionMappingConfig> getExceptionMappings()
getInterceptors
public List<InterceptorMapping> getInterceptors()
getAllowedMethods
public Set<String> getAllowedMethods()
getMethodName
public String getMethodName()
- Returns name of the action method
- Returns:
- name of the method to execute
getPackageName
public String getPackageName()
- Returns:
- Returns the packageName.
getParams
public Map<String,String> getParams()
getResults
public Map<String,ResultConfig> getResults()
isAllowedMethod
public boolean isAllowedMethod(String method)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.