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
  • Constructor Details

    • InputParameterServiceImpl

      public InputParameterServiceImpl()
  • Method Details

    • getParameter

      public String getParameter(String name)
      Description copied from interface: InputParameterService
      Get a request parameter.
      Specified by:
      getParameter in interface InputParameterService
      Returns:
      Returns the value of a request parameter as a String, or null if the parameter does not exist.
    • getLongParameter

      public Long getLongParameter(String name)
      Description copied from interface: InputParameterService
      Get a Long request parameter.
      Specified by:
      getLongParameter in interface InputParameterService
      Returns:
      the Long or null if either the value cannot be parsed to a Long or does not exist
    • getIntegerParameter

      public Integer getIntegerParameter(String name)
      Description copied from interface: InputParameterService
      Get an Integer request parameter.
      Specified by:
      getIntegerParameter in interface InputParameterService
      Returns:
      the Integer or null if either the value cannot be parsed to an Integer or does not exist
    • getBooleanParameter

      public Boolean getBooleanParameter(String name)
      Get a Boolean request parameter. Only returns a Boolean for "true" and "false" values, null for everything else
      Specified by:
      getBooleanParameter in interface InputParameterService
      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.