Class ActionConfig

java.lang.Object
org.apache.struts2.util.location.Located
org.apache.struts2.config.entities.ActionConfig
All Implemented Interfaces:
Serializable, Locatable

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$
Author:
Mike, Rainer Hermanns
See Also:
  • Field Details

  • Constructor Details

    • 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
      Since:
      2.1
  • Method Details

    • 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)
    • isStrictMethodInvocation

      public boolean isStrictMethodInvocation()
    • 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