src/aria/modules/RequestMgr.js
function (args) {
            // var cb = args.cb;
            var res = args.res;

            var handler = args.requestHandler;

            // http error > use process failure
            if (res.error) {
                handler.processFailure({
                    error : res.error,
                    status : res.status,
                    responseXML : res.responseXML,
                    responseText : res.responseText,
                    responseJSON : res.responseJSON
                }, {
                    url : args.res.url,
                    session : args.session,
                    requestObject : args.requestObject
                }, {
                    fn : this._callRequestCallback,
                    scope : this,
                    args : args
                });
            } else {
                handler.processSuccess({
                    responseXML : res.responseXML,
                    responseText : res.responseText,
                    responseJSON : res.responseJSON
                }, {
                    url : res.url,
                    session : args.session,
                    requestObject : args.requestObject
                }, {
                    fn : this._callRequestCallback,
                    scope : this,
                    args : args
                });
            }
        }
function (args) {
            // var cb = args.cb;
            var res = args.res;

            var handler = args.requestHandler;

            // http error > use process failure
            if (res.error) {
                handler.processFailure({
                    error : res.error,
                    status : res.status,
                    responseXML : res.responseXML,
                    responseText : res.responseText,
                    responseJSON : res.responseJSON
                }, {
                    url : args.res.url,
                    session : args.session,
                    requestObject : args.requestObject
                }, {
                    fn : this._callRequestCallback,
                    scope : this,
                    args : args
                });
            } else {
                handler.processSuccess({
                    responseXML : res.responseXML,
                    responseText : res.responseText,
                    responseJSON : res.responseJSON
                }, {
                    url : res.url,
                    session : args.session,
                    requestObject : args.requestObject
                }, {
                    fn : this._callRequestCallback,
                    scope : this,
                    args : args
                });
            }
        }
function ( args ) { // var cb = args.cb; var res = args . res ; var handler = args . requestHandler ; // http error > use process failure if ( res . error ) { handler . processFailure ( { error : res . error , status : res . status , responseXML : res . responseXML , responseText : res . responseText , responseJSON : res . responseJSON } , { url : args . res . url , session : args . session , requestObject : args . requestObject } , { fn : this . _callRequestCallback , scope : this , args : args } ) ; } else { handler . processSuccess ( { responseXML : res . responseXML , responseText : res . responseText , responseJSON : res . responseJSON } , { url : res . url , session : args . session , requestObject : args . requestObject } , { fn : this . _callRequestCallback , scope : this , args : args } ) ; } }
After delay, use handler to parse the message.
@param {Object} args contains path, cb, actionqueuing, session, filterRes, res and potential httpError
@protected
After delay use handler to parse the message .