public HttpServletResponse getResponse ( ) { // moved as part of LIDB-3598 to ServletUtil /* ServletResponse r = _resp; while (!(r instanceof HttpServletResponse)) { if (r instanceof ServletResponseWrapper) { r = ((ServletResponseWrapper) r).getResponse(); } } return (HttpServletResponse) r; */ //begin 311003, 61FVT:Simple SIP request generating exception ServletResponse sRes = null ; if ( _resp == null ) return null ; try { sRes = ServletUtil . unwrapResponse ( _resp ) ; } catch ( RuntimeException re ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . logp ( Level . FINE , CLASS_NAME , "getResponse" , "Caught RuntimeException unwrapping the response" , re ) ; return null ; } //end 311003, 61FVT:Simple SIP request generating exception if ( sRes instanceof HttpServletResponse ) return ( HttpServletResponse ) sRes ; else return null ; }
Get the response used for the servlet invocation .