Package org.apache.struts2.action

# Interface ParameterValueAware

public interface ParameterValueAware
This interface is implemented by actions that want to declare acceptable parameter values. Works in conjunction with `ParametersInterceptor`. For example, actions may want to create a white list of parameter values they will accept or a blacklist of parameter values they will reject to prevent clients from setting other unexpected (and possibly dangerous) parameter values.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `acceptableParameterValue(String parameterValue)`
  Tests if the action will accept the parameter with the given value.

- ## Method Details

  - ### acceptableParameterValue

    boolean acceptableParameterValue(String parameterValue)
    Tests if the action will accept the parameter with the given value.
    Parameters:
      `parameterValue` - the parameter value
    Returns:
      `true` if accepted, `false` otherwise