public static void setRequestDebuggable ( HttpServletRequest req , JawrConfig jawrConfig ) { // make sure we have set an overrideKey // make sure the overrideKey exists in the request // lastly, make sure the keys match if ( jawrConfig . getDebugOverrideKey ( ) . length ( ) > 0 && null != req . getParameter ( JawrConstant . OVERRIDE_KEY_PARAMETER_NAME ) && jawrConfig . getDebugOverrideKey ( ) . equals ( req . getParameter ( JawrConstant . OVERRIDE_KEY_PARAMETER_NAME ) ) ) { ThreadLocalJawrContext . setDebugOverriden ( true ) ; } else { ThreadLocalJawrContext . setDebugOverriden ( false ) ; } // Inherit the debuggable property of the session if the session is a // debuggable one inheritSessionDebugProperty ( req ) ; }
Determines whether to override the debug settings . Sets the debugOverride status on ThreadLocalJawrContext