private void logOriginalResponseHistory ( PluginResponse httpServletResponse , History history ) throws URIException { RequestInformation requestInfo = requestInformation . get ( ) ; if ( requestInfo . handle && requestInfo . client . getIsActive ( ) ) { logger . info ( "Storing original response history" ) ; history . setOriginalResponseHeaders ( HttpUtilities . getHeaders ( httpServletResponse ) ) ; history . setOriginalResponseCode ( Integer . toString ( httpServletResponse . getStatus ( ) ) ) ; history . setOriginalResponseContentType ( httpServletResponse . getContentType ( ) ) ; history . setOriginalResponseData ( httpServletResponse . getContentString ( ) ) ; logger . info ( "Done storing" ) ; } }
Log original response