Class InputParameterServiceImpl
java.lang.Object
com.atlassian.greenhopper.web.input.InputParameterServiceImpl
- All Implemented Interfaces:
InputParameterService
@Service("gh-inputParameterService")
public class InputParameterServiceImpl
extends Object
implements InputParameterService
-
Field Summary
Fields inherited from interface com.atlassian.greenhopper.web.input.InputParameterService
SERVICE -
Constructor Summary
Constructors -
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.
-
Constructor Details
-
InputParameterServiceImpl
public InputParameterServiceImpl()
-
-
Method Details
-
getParameter
Description copied from interface:InputParameterServiceGet a request parameter.- Specified by:
getParameterin interfaceInputParameterService- Returns:
- Returns the value of a request parameter as a String, or null if the parameter does not exist.
-
getLongParameter
Description copied from interface:InputParameterServiceGet a Long request parameter.- Specified by:
getLongParameterin interfaceInputParameterService- Returns:
- the Long or null if either the value cannot be parsed to a Long or does not exist
-
getIntegerParameter
Description copied from interface:InputParameterServiceGet an Integer request parameter.- Specified by:
getIntegerParameterin interfaceInputParameterService- 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. Only returns a Boolean for "true" and "false" values, null for everything else- Specified by:
getBooleanParameterin interfaceInputParameterService- 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.
-