src/aria/core/IOFiltersMgr.js
function (unused, args) {
                var filters = args.filters;
                var request = args.request;
                var curFilter;
                // initialize the delay
                request.delay = 0;
                if (args.isResponse) {
                    for (var i = args.nbFilters - 1; i >= 0; i--) {
                        curFilter = filters[i].obj;
                        if (curFilter) {
                            curFilter.__onResponse(request);
                        }
                    }
                } else {
                    for (var i = 0, l = args.nbFilters; i < l; i++) {
                        curFilter = filters[i].obj;
                        if (curFilter) {
                            curFilter.__onRequest(request);
                        }
                    }
                }
                if (request.delay > 0) {
                    // wait for the specified delay
                    ariaCoreTimer.addCallback({
                        fn : this._afterDelay,
                        args : args,
                        scope : this,
                        delay : request.delay
                    });
                } else {
                    this._afterDelay(args);
                }
            }
function (unused, args) {
                var filters = args.filters;
                var request = args.request;
                var curFilter;
                // initialize the delay
                request.delay = 0;
                if (args.isResponse) {
                    for (var i = args.nbFilters - 1; i >= 0; i--) {
                        curFilter = filters[i].obj;
                        if (curFilter) {
                            curFilter.__onResponse(request);
                        }
                    }
                } else {
                    for (var i = 0, l = args.nbFilters; i < l; i++) {
                        curFilter = filters[i].obj;
                        if (curFilter) {
                            curFilter.__onRequest(request);
                        }
                    }
                }
                if (request.delay > 0) {
                    // wait for the specified delay
                    ariaCoreTimer.addCallback({
                        fn : this._afterDelay,
                        args : args,
                        scope : this,
                        delay : request.delay
                    });
                } else {
                    this._afterDelay(args);
                }
            }
function ( unused , args ) { var filters = args . filters ; var request = args . request ; var curFilter ; // initialize the delay request . delay = 0 ; if ( args . isResponse ) { for ( var i = args . nbFilters - 1 ; i >= 0 ; i -- ) { curFilter = filters [ i ] . obj ; if ( curFilter ) { curFilter . __onResponse ( request ) ; } } } else { for ( var i = 0 , l = args . nbFilters ; i < l ; i ++ ) { curFilter = filters [ i ] . obj ; if ( curFilter ) { curFilter . __onRequest ( request ) ; } } } if ( request . delay > 0 ) { // wait for the specified delay ariaCoreTimer . addCallback ( { fn : this . _afterDelay , args : args , scope : this , delay : request . delay } ) ; } else { this . _afterDelay ( args ) ; } }
Effectively call filters in the right order.
@param {MultiTypes} unused
@param {Object} args object containing the following properties: isResponse, request, cb, filters and
nbFilters
@private
Effectively call filters in the right order .