private static AbstractWebApplicationService determineWebApplicationFormat ( final HttpServletRequest request , final AbstractWebApplicationService webApplicationService ) { val format = request != null ? request . getParameter ( CasProtocolConstants . PARAMETER_FORMAT ) : null ; try { if ( StringUtils . isNotBlank ( format ) ) { val formatType = ValidationResponseType . valueOf ( format . toUpperCase ( ) ) ; webApplicationService . setFormat ( formatType ) ; } } catch ( final Exception e ) { LOGGER . error ( "Format specified in the request [{}] is not recognized" , format ) ; } return webApplicationService ; }
Determine web application format boolean .