/** * Get a float parameter, throwing an exception if it isn't found or isn't a number. * @param request current HTTP request * @param name the name of the parameter * @throws ServletRequestBindingException a subclass of ServletException, * so it doesn't need to be caught */ public static float getRequiredFloatParameter(ServletRequest request, String name) throws ServletRequestBindingException { return FLOAT_PARSER.parseFloat(name, request.getParameter(name)); }
public float parseFloat(String name, String parameter) throws ServletRequestBindingException { return parse(name, parameter); }
public float parseFloat(String name, String parameter) throws ServletRequestBindingException { return parse(name, parameter); }
public float[] parseFloats(String name, String[] values) throws ServletRequestBindingException { validateRequiredParameter(name, values); float[] parameters = new float[values.length]; for (int i = 0; i < values.length; i++) { parameters[i] = parseFloat(name, values[i]); } return parameters; } }
/** * Get a float parameter, throwing an exception if it isn't found or isn't a number. * @param request current HTTP request * @param name the name of the parameter * @throws ServletRequestBindingException a subclass of ServletException, * so it doesn't need to be caught */ public static float getRequiredFloatParameter(ServletRequest request, String name) throws ServletRequestBindingException { return FLOAT_PARSER.parseFloat(name, request.getParameter(name)); }
/** * Get an array of float parameters, throwing an exception if not found or one is not a number. * @param request current HTTP request * @param name the name of the parameter with multiple possible values * @throws ServletRequestBindingException a subclass of ServletException, * so it doesn't need to be caught */ public static float[] getRequiredFloatParameters(ServletRequest request, String name) throws ServletRequestBindingException { return FLOAT_PARSER.parseFloats(name, request.getParameterValues(name)); }
/** * Get an array of float parameters, throwing an exception if not found or one is not a number. * @param request current HTTP request * @param name the name of the parameter with multiple possible values * @throws ServletRequestBindingException a subclass of ServletException, * so it doesn't need to be caught */ public static float[] getRequiredFloatParameters(ServletRequest request, String name) throws ServletRequestBindingException { return FLOAT_PARSER.parseFloats(name, request.getParameterValues(name)); }
public float[] parseFloats(String name, String[] values) throws ServletRequestBindingException { validateRequiredParameter(name, values); float[] parameters = new float[values.length]; for (int i = 0; i < values.length; i++) { parameters[i] = parseFloat(name, values[i]); } return parameters; } }
/** * Get a float parameter, throwing an exception if it isn't found or isn't a number. * @param request current HTTP request * @param name the name of the parameter * @throws ServletRequestBindingException a subclass of ServletException, * so it doesn't need to be caught */ public static float getRequiredFloatParameter(ServletRequest request, String name) throws ServletRequestBindingException { return FLOAT_PARSER.parseFloat(name, request.getParameter(name)); }
public float parseFloat(String name, String parameter) throws ServletRequestBindingException { return parse(name, parameter); }
/** * Get an array of float parameters, throwing an exception if not found or one is not a number. * @param request current HTTP request * @param name the name of the parameter with multiple possible values * @throws ServletRequestBindingException a subclass of ServletException, * so it doesn't need to be caught */ public static float[] getRequiredFloatParameters(ServletRequest request, String name) throws ServletRequestBindingException { return FLOAT_PARSER.parseFloats(name, request.getParameterValues(name)); }
public float[] parseFloats(String name, String[] values) throws ServletRequestBindingException { validateRequiredParameter(name, values); float[] parameters = new float[values.length]; for (int i = 0; i < values.length; i++) { parameters[i] = parseFloat(name, values[i]); } return parameters; } }
public float parseFloat(String name, String parameter) throws ServletRequestBindingException { return parse(name, parameter); }
/** * Get an array of float parameters, throwing an exception if not found or one is not a number. * @param request current HTTP request * @param name the name of the parameter with multiple possible values * @throws ServletRequestBindingException a subclass of ServletException, * so it doesn't need to be caught */ public static float[] getRequiredFloatParameters(ServletRequest request, String name) throws ServletRequestBindingException { return FLOAT_PARSER.parseFloats(name, request.getParameterValues(name)); }
/** * Get a float parameter, throwing an exception if it isn't found or isn't a number. * @param request current HTTP request * @param name the name of the parameter * @throws ServletRequestBindingException a subclass of ServletException, * so it doesn't need to be caught */ public static float getRequiredFloatParameter(ServletRequest request, String name) throws ServletRequestBindingException { return FLOAT_PARSER.parseFloat(name, request.getParameter(name)); }
public float[] parseFloats(String name, String[] values) throws ServletRequestBindingException { validateRequiredParameter(name, values); float[] parameters = new float[values.length]; for (int i = 0; i < values.length; i++) { parameters[i] = parseFloat(name, values[i]); } return parameters; } }