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

getRequiredIntParameters

open static fun getRequiredIntParameters(request: ServletRequest, name: String): IntArray

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