Package com.helger.html.request
Interface IHCRequestFieldMultiValue
-
- All Superinterfaces:
IHCBaseRequestField
public interface IHCRequestFieldMultiValue extends IHCBaseRequestField
Defines an abstract request field for input controls. It encapsulates a name and 0-n request values.- Since:
- 8.0.2
- Author:
- Philip Helger“
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.helger.commons.collection.impl.ICommonsList<String>getDefaultValues()Get the default values that should be used if no request value is present.com.helger.commons.collection.impl.ICommonsList<String>getRequestValues()In case multiple request parameters with the same value are present (e.g.-
Methods inherited from interface com.helger.html.request.IHCBaseRequestField
getFieldName
-
-
-
-
Method Detail
-
getDefaultValues
@Nonnull com.helger.commons.collection.impl.ICommonsList<String> getDefaultValues()
Get the default values that should be used if no request value is present.- Returns:
- The default value to be used as fallback. May not be
nullbut maybe empty.
-
getRequestValues
@Nonnull com.helger.commons.collection.impl.ICommonsList<String> getRequestValues()
In case multiple request parameters with the same value are present (e.g. multi-selects) this method retrieves all request values. If no such request value is present, the default values are returned.- Returns:
- A list of request values with the same field name or the default values if no such request values are present.
-
-