com.atlassian.greenhopper.web.input
Class InputParameterServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.web.input.InputParameterServiceImpl
All Implemented Interfaces:
InputParameterService

@Service(value="gh-inputParameterService")
public class InputParameterServiceImpl
extends java.lang.Object
implements InputParameterService


Field Summary
 
Fields inherited from interface com.atlassian.greenhopper.web.input.InputParameterService
SERVICE
 
Constructor Summary
InputParameterServiceImpl()
           
 
Method Summary
 java.lang.Boolean getBooleanParameter(java.lang.String name)
          Get a Boolean request parameter.
 java.lang.Integer getIntegerParameter(java.lang.String name)
          Get an Integer request parameter.
 java.lang.Long getLongParameter(java.lang.String name)
          Get a Long request parameter.
 java.lang.String getParameter(java.lang.String name)
          Get a request parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputParameterServiceImpl

public InputParameterServiceImpl()
Method Detail

getParameter

public java.lang.String getParameter(java.lang.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 java.lang.Long getLongParameter(java.lang.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 java.lang.Integer getIntegerParameter(java.lang.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 java.lang.Boolean getBooleanParameter(java.lang.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.


Copyright © 2007-2012 Atlassian. All Rights Reserved.