Example usage for org.springframework.web.bind ServletRequestUtils getDoubleParameter

List of usage examples for org.springframework.web.bind ServletRequestUtils getDoubleParameter

Introduction

In this page you can find the example usage for org.springframework.web.bind ServletRequestUtils getDoubleParameter.

Prototype

public static double getDoubleParameter(ServletRequest request, String name, double defaultVal) 

Source Link

Document

Get a double parameter, with a fallback value.

Usage

From source file:com.netease.channel.util.ServletUtils.java

/**
 * Get a long parameter, with a fallback value. Never throws an exception.
 * Can pass a distinguished value as default to enable checks of whether it
 * was supplied./*  w w w.  ja v  a 2  s.c o m*/
 *
 * @param request
 *            current HTTP request
 * @param name
 *            the name of the parameter
 * @param defaultVal
 *            the default value to use as fallback
 */
public static double getDouble(ServletRequest request, String name, long defaultVal) {
    return ServletRequestUtils.getDoubleParameter(request, name, defaultVal);
}