public class DefaultActionNameBuilder extends Object implements ActionNameBuilder
This class strips the word Action from the end of the class name and possibly lowercases the name as well depending on the value of the constant struts.convention.action.name.lowercase. If the constant is set to true, this class will lowercase all action names.
Constructor and Description |
---|
DefaultActionNameBuilder(String lowerCase) |
Modifier and Type | Method and Description |
---|---|
String |
build(String className)
Given the name of the class, this method should build an action name.
|
void |
setActionSuffix(String actionSuffix) |
public DefaultActionNameBuilder(String lowerCase)
public void setActionSuffix(String actionSuffix)
actionSuffix
- (Optional) Classes that end with these value will be mapped as actions
(defaults to "Action")public String build(String className)
ActionNameBuilder
build
in interface ActionNameBuilder
className
- The class name.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.