Interface InputParameterService
- All Known Implementing Classes:
InputParameterServiceImpl
public interface InputParameterService
Proivdes input
- Author:
- miruflin
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetBooleanParameter(String name) Get a Boolean request parameter.getIntegerParameter(String name) Get an Integer request parameter.getLongParameter(String name) Get a Long request parameter.getParameter(String name) Get a request parameter.
-
Field Details
-
SERVICE
- See Also:
-
-
Method Details
-
getParameter
Get a request parameter.- Returns:
- Returns the value of a request parameter as a String, or null if the parameter does not exist.
-
getLongParameter
Get a Long request parameter.- Returns:
- the Long or null if either the value cannot be parsed to a Long or does not exist
-
getIntegerParameter
Get an Integer request parameter.- Returns:
- the Integer or null if either the value cannot be parsed to an Integer or does not exist
-
getBooleanParameter
Get a Boolean request parameter.- Returns:
- the Boolean or null if either the value cannot be parsed to a Boolean or does not exist. Only exact "true" and "false" values are parsed correctly.
-