org.apache.struts2.convention

## Class DefaultActionNameBuilder

- java.lang.Object
- - org.apache.struts2.convention.AbstractActionNameBuilder
  - - org.apache.struts2.convention.DefaultActionNameBuilder

- All Implemented Interfaces:
    ActionNameBuilder

      public class DefaultActionNameBuilder
      extends AbstractActionNameBuilder

  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 Summary

    Constructors
    Constructor and Description
    `DefaultActionNameBuilder(String lowerCase)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `build(String className)` Given the name of the class, this method should build an action name.

    - ### Methods inherited from class org.apache.struts2.convention.AbstractActionNameBuilder

      `checkActionName, setActionSuffix, truncateSuffixIfMatches`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultActionNameBuilder

          public DefaultActionNameBuilder(String lowerCase)

  - ### Method Detail

    - #### build

          public String build(String className)

      Description copied from interface: `ActionNameBuilder`
      Given the name of the class, this method should build an action name.
      Parameters:
        `className` - The class name.
      Returns:
        The action name and never null.

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