public static void storeGrailsWebRequest ( GrailsWebRequest webRequest ) { RequestContextHolder . setRequestAttributes ( webRequest ) ; webRequest . getRequest ( ) . setAttribute ( GrailsApplicationAttributes . WEB_REQUEST , webRequest ) ; }
Helper method to store the given GrailsWebRequest for the current request . Ensures consistency between RequestContextHolder and the relevant request attribute . This is the preferred means of updating the current web request .