public static void inheritSessionDebugProperty ( HttpServletRequest request ) { HttpSession session = request . getSession ( false ) ; if ( session != null ) { String sessionId = session . getId ( ) ; JawrApplicationConfigManager appConfigMgr = ( JawrApplicationConfigManager ) session . getServletContext ( ) . getAttribute ( JawrConstant . JAWR_APPLICATION_CONFIG_MANAGER ) ; // If the session ID is a debuggable session ID, activate debug mode // for the request. if ( appConfigMgr != null && appConfigMgr . isDebugSessionId ( sessionId ) ) { ThreadLocalJawrContext . setDebugOverriden ( true ) ; } } }
Sets a request debuggable if the session is a debuggable session .