public class SEOActionNameBuilder extends Object implements ActionNameBuilder
This class converts the class name into a SEO friendly name by recognizing camel casing and inserting dashes. This also converts everything to lower case if desired. And this will also strip off the word Action from the class name.
Constructor and Description |
---|
SEOActionNameBuilder(String lowerCase,
String separator) |
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 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-2015 Apache Software Foundation. All Rights Reserved.