Package com.helger.html.request
Interface IHCRequestField
-
- All Superinterfaces:
IHCBaseRequestField
- All Known Subinterfaces:
IHCRequestFieldBoolean,IHCRequestFieldBooleanMultiValue
public interface IHCRequestField extends IHCBaseRequestField
Defines an abstract request field for input controls. It encapsulates a name and a single request value.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDefaultValue()Get the default value that should be used if no request value is present.StringgetRequestValue()Get the value of the request - optionally falling back to an eventually provided default value if no such request parameter is present-
Methods inherited from interface com.helger.html.request.IHCBaseRequestField
getFieldName
-
-
-
-
Method Detail
-
getDefaultValue
@Nonnull String getDefaultValue()
Get the default value that should be used if no request value is present.- Returns:
- The default value to be used as fallback. May not be
null.nullhave to be returned as empty strings!
-
getRequestValue
@Nonnull String getRequestValue()
Get the value of the request - optionally falling back to an eventually provided default value if no such request parameter is present- Returns:
- A single request value as string.
- See Also:
getDefaultValue()
-
-