public class ConventionsServiceImpl extends Object implements ConventionsService
 This class is the implementation of the ConventionsService
 interface and provides all of the defaults and annotation handling.
 
| Constructor and Description | 
|---|
| ConventionsServiceImpl(String resultPath)Constructs a new instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | determineResultPath(ActionConfig actionConfig)Delegates to the other method but first looks up the Action's class using the given class name. | 
| String | determineResultPath(Class<?> actionClass)Locates the result location from annotations on the action class or the package or returns the
 default if no annotations are present. | 
| Map<String,ResultTypeConfig> | getResultTypesByExtension(PackageConfig packageConfig)Returns a mapping between the result type strings and the  ResultTypeConfiginstances
 based on thePackageConfiggiven. | 
public ConventionsServiceImpl(String resultPath)
resultPath - The result path that is configured in the Struts configuration files using
          the constant name of struts.convention.result.path.public String determineResultPath(Class<?> actionClass)
determineResultPath in interface ConventionsServiceactionClass - The action class.public String determineResultPath(ActionConfig actionConfig)
determineResultPath in interface ConventionsServiceactionConfig - (Optional) The configuration for the action that the result is being
          built for or null if the default result path is needed.public Map<String,ResultTypeConfig> getResultTypesByExtension(PackageConfig packageConfig)
ResultTypeConfig instances
 based on the PackageConfig given.getResultTypesByExtension in interface ConventionsServicepackageConfig - The PackageConfig to get the result types for.Copyright © 2000–2025 Apache Software Foundation. All rights reserved.