/** * Get a double 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 double getRequiredDoubleParameter(ServletRequest request, String name) throws ServletRequestBindingException { return DOUBLE_PARSER.parseDouble(name, request.getParameter(name)); }
public double parseDouble(String name, String parameter) throws ServletRequestBindingException { return parse(name, parameter); }
public double parseDouble(String name, String parameter) throws ServletRequestBindingException { return parse(name, parameter); }
public double[] parseDoubles(String name, String[] values) throws ServletRequestBindingException { validateRequiredParameter(name, values); double[] parameters = new double[values.length]; for (int i = 0; i < values.length; i++) { parameters[i] = parseDouble(name, values[i]); } return parameters; } }
/** * Get an array of double 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 double[] getRequiredDoubleParameters(ServletRequest request, String name) throws ServletRequestBindingException { return DOUBLE_PARSER.parseDoubles(name, request.getParameterValues(name)); }
/** * Get a double 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 double getRequiredDoubleParameter(ServletRequest request, String name) throws ServletRequestBindingException { return DOUBLE_PARSER.parseDouble(name, request.getParameter(name)); }
/** * Get an array of double 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 double[] getRequiredDoubleParameters(ServletRequest request, String name) throws ServletRequestBindingException { return DOUBLE_PARSER.parseDoubles(name, request.getParameterValues(name)); }
public double[] parseDoubles(String name, String[] values) throws ServletRequestBindingException { validateRequiredParameter(name, values); double[] parameters = new double[values.length]; for (int i = 0; i < values.length; i++) { parameters[i] = parseDouble(name, values[i]); } return parameters; } }
/** * Get a double 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 double getRequiredDoubleParameter(ServletRequest request, String name) throws ServletRequestBindingException { return DOUBLE_PARSER.parseDouble(name, request.getParameter(name)); }
public double parseDouble(String name, String parameter) throws ServletRequestBindingException { return parse(name, parameter); }
/** * Get an array of double 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 double[] getRequiredDoubleParameters(ServletRequest request, String name) throws ServletRequestBindingException { return DOUBLE_PARSER.parseDoubles(name, request.getParameterValues(name)); }
public double[] parseDoubles(String name, String[] values) throws ServletRequestBindingException { validateRequiredParameter(name, values); double[] parameters = new double[values.length]; for (int i = 0; i < values.length; i++) { parameters[i] = parseDouble(name, values[i]); } return parameters; } }
public double[] parseDoubles(String name, String[] values) throws ServletRequestBindingException { validateRequiredParameter(name, values); double[] parameters = new double[values.length]; for (int i = 0; i < values.length; i++) { parameters[i] = parseDouble(name, values[i]); } return parameters; } }
public double parseDouble(String name, String parameter) throws ServletRequestBindingException { return parse(name, parameter); }
/** * Get a double 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 double getRequiredDoubleParameter(ServletRequest request, String name) throws ServletRequestBindingException { return DOUBLE_PARSER.parseDouble(name, request.getParameter(name)); }
/** * Get an array of double 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 double[] getRequiredDoubleParameters(ServletRequest request, String name) throws ServletRequestBindingException { return DOUBLE_PARSER.parseDoubles(name, request.getParameterValues(name)); }