/** * Get the parameter passed by controller. When it's executed in the * validation mode, always returns empty string. * * @return param. empty string if none. * @since 3.2.3 */ public static String getParam() { return getParam(""); }
/** * Get the parameter passed by controller. When it's executed in the * validation mode, always returns the given default value(false). * * @return param. false if the param was not provided. * @since 3.2.3 */ public static boolean getParamBoolean() { return BooleanUtils.toBoolean(getParam("false")); }
/** * Get the parameter passed by controller. When it's executed in the * validation mode, always returns the given default value 0. * * @return param. 0 if the param was not provided. * @since 3.2.3 */ public static float getParamFloat() { return NumberUtils.toFloat(getParam("0"), 0f); }
/** * Get the parameter passed by controller. When it's executed in the * validation mode, always returns the given default value 0. * * @return param. 0 if the param was not provided. * @since 3.2.3 */ public static int getParamInt() { return NumberUtils.toInt(getParam("0"), 0); }
/** * Get the parameter passed by controller. When it's executed in the * validation mode, always returns the given default value 0. * * @return param. 0 if the param was not provided. * @since 3.2.3 */ public static long getParamLong() { return NumberUtils.toLong(getParam("0"), 0); }
/** * Get the parameter passed by controller. When it's executed in the * validation mode, always returns the given default value 0. * * @return param. 0 if the param was not provided. * @since 3.2.3 */ public static double getParamDouble() { return NumberUtils.toDouble(getParam("0"), 0); }