spring-framework / org.springframework.web.bind / ServletRequestUtils / getRequiredDoubleParameters

getRequiredDoubleParameters

open static fun getRequiredDoubleParameters(request: ServletRequest, name: String): DoubleArray

Get an array of double parameters, throwing an exception if not found or one is not a number.

Parameters

request - current HTTP request

name - the name of the parameter with multiple possible values

Exceptions

ServletRequestBindingException - a subclass of ServletException, so it doesn't need to be caught