public static @ Nullable GrailsWebRequest lookup ( HttpServletRequest request ) { GrailsWebRequest webRequest = ( GrailsWebRequest ) request . getAttribute ( GrailsApplicationAttributes . WEB_REQUEST ) ; return webRequest == null ? lookup ( ) : webRequest ; }
Looks up the GrailsWebRequest from the current request .