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

getRequiredLongParameters

open static fun getRequiredLongParameters(request: ServletRequest, name: String): LongArray

Get an array of long 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