Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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$
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`
`static String` | `DEFAULT_METHOD`
`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

### DEFAULT_METHOD

    public static final String DEFAULT_METHOD

See Also:
  Constant Field Values

### 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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000–2017 Apache Software Foundation. All rights reserved.