com.opensymphony.xwork2.config.entities
Class ActionConfig

java.lang.Object
  extended by com.opensymphony.xwork2.util.location.Located
      extended by 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:

Version:
$Revision: 1756 $
Author:
Mike, Rainer Hermanns
See Also:
Serialized Form

Nested Class Summary
static class ActionConfig.Builder
          The builder for this object.
 
Field Summary
protected  Set<String> allowedMethods
           
protected  String className
           
protected  List<ExceptionMappingConfig> exceptionMappings
           
protected  List<InterceptorMapping> interceptors
           
protected  String methodName
           
protected  String name
           
protected  String packageName
           
protected  Map<String,String> params
           
protected  Map<String,ResultConfig> results
           
static String WILDCARD
           
 
Fields inherited from class com.opensymphony.xwork2.util.location.Located
location
 
Constructor Summary
protected ActionConfig(ActionConfig orig)
          Clones an ActionConfig, copying data into new maps and lists
protected ActionConfig(String packageName, String name, String className)
           
 
Method Summary
 boolean equals(Object o)
           
 Set<String> getAllowedMethods()
           
 String getClassName()
           
 List<ExceptionMappingConfig> getExceptionMappings()
           
 List<InterceptorMapping> getInterceptors()
           
 String getMethodName()
          Returns name of the action method
 String getName()
           
 String getPackageName()
           
 Map<String,String> getParams()
           
 Map<String,ResultConfig> getResults()
           
 int hashCode()
           
 boolean isAllowedMethod(String method)
           
 String toString()
           
 
Methods inherited from class com.opensymphony.xwork2.util.location.Located
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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.