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

getRequiredStringParameter

open static fun getRequiredStringParameter(request: ServletRequest, name: String): String

Get a String parameter, throwing an exception if it isn't found.

Parameters

request - current HTTP request

name - the name of the parameter

Exceptions

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