public static boolean doesParameterExist ( final HttpServletRequest request , final String name ) { val parameter = request . getParameter ( name ) ; if ( StringUtils . isBlank ( parameter ) ) { LOGGER . error ( "Missing request parameter: [{}]" , name ) ; return false ; } LOGGER . debug ( "Found provided request parameter [{}]" , name ) ; return true ; }
Check if a parameter exists .