protected function _processResponse(Zend_Http_Response $response, $uri)
    {
        $this->_status = $response->getStatus();
        $config = $this->_getHandlerConfig($this->_getHandlerKey($response));
        $logMethod = isset($config['logger']) ? $config['logger'] : 'debug';
        $logData = array_merge(['rom_request_url' => $uri], $this->_logAppContext);
        $this->_logger->$logMethod('Received response from.', $this->_context->getMetaData(__CLASS__, $logData));
        $responseData = $logData;
        $responseData['rom_response_body'] = $response->asString();
        $logMessage = 'Response data.';
        $this->_logger->debug($logMessage, $this->_context->getMetaData(__CLASS__, $responseData));
        if (!$response->getBody()) {
            $logMessage = "Received response with no body from {$uri} with status {$this->_status}.";
            $this->_logger->warning($logMessage, $this->_context->getMetaData(__CLASS__, $logData));
        }
        $callbackConfig = isset($config['callback']) ? $config['callback'] : array();
        $callbackConfig['parameters'] = array($response);
        return Mage::helper('radial_core')->invokeCallBack($callbackConfig);
    }
protected function _processResponse(Zend_Http_Response $response, $uri)
    {
        $this->_status = $response->getStatus();
        $config = $this->_getHandlerConfig($this->_getHandlerKey($response));
        $logMethod = isset($config['logger']) ? $config['logger'] : 'debug';
        $logData = array_merge(['rom_request_url' => $uri], $this->_logAppContext);
        $this->_logger->$logMethod('Received response from.', $this->_context->getMetaData(__CLASS__, $logData));
        $responseData = $logData;
        $responseData['rom_response_body'] = $response->asString();
        $logMessage = 'Response data.';
        $this->_logger->debug($logMessage, $this->_context->getMetaData(__CLASS__, $responseData));
        if (!$response->getBody()) {
            $logMessage = "Received response with no body from {$uri} with status {$this->_status}.";
            $this->_logger->warning($logMessage, $this->_context->getMetaData(__CLASS__, $logData));
        }
        $callbackConfig = isset($config['callback']) ? $config['callback'] : array();
        $callbackConfig['parameters'] = array($response);
        return Mage::helper('radial_core')->invokeCallBack($callbackConfig);
    }
protected function _processResponse ( Zend_Http_Response $ response , $ uri ) { $ this -> _status = $ response -> getStatus ( ) ; $ config = $ this -> _getHandlerConfig ( $ this -> _getHandlerKey ( $ response ) ) ; $ logMethod = isset ( $ config [ 'logger' ] ) ? $ config [ 'logger' ] : 'debug' ; $ logData = array_merge ( [ 'rom_request_url' => $ uri ] , $ this -> _logAppContext ) ; $ this -> _logger -> $ logMethod ( 'Received response from.' , $ this -> _context -> getMetaData ( __CLASS__ , $ logData ) ) ; $ responseData = $ logData ; $ responseData [ 'rom_response_body' ] = $ response -> asString ( ) ; $ logMessage = 'Response data.' ; $ this -> _logger -> debug ( $ logMessage , $ this -> _context -> getMetaData ( __CLASS__ , $ responseData ) ) ; if ( ! $ response -> getBody ( ) ) { $ logMessage = "Received response with no body from {$uri} with status {$this->_status}." ; $ this -> _logger -> warning ( $ logMessage , $ this -> _context -> getMetaData ( __CLASS__ , $ logData ) ) ; } $ callbackConfig = isset ( $ config [ 'callback' ] ) ? $ config [ 'callback' ] : array ( ) ; $ callbackConfig [ 'parameters' ] = array ( $ response ) ; return Mage :: helper ( 'radial_core' ) -> invokeCallBack ( $ callbackConfig ) ; }
log the response and return the result of the configured handler method.

@param  Zend_Http_Response $response
@param  string $uri
@return string response body or empty
log the response and return the result of the configured handler method .