src/aria/core/IOFilter.js
function (req, path, preventTimestamp) {
            if (path) {
                // change request url and method to target the requested file:
                req.url = ariaCoreDownloadMgr.resolveURL(path, true);
                if (preventTimestamp !== true) {
                    req.url = ariaCoreDownloadMgr.getURLWithTimestamp(req.url, true);
                }
                req.method = "GET";
                req.jsonp = null; // not a json-p request
            }
        }
function (req, path, preventTimestamp) {
            if (path) {
                // change request url and method to target the requested file:
                req.url = ariaCoreDownloadMgr.resolveURL(path, true);
                if (preventTimestamp !== true) {
                    req.url = ariaCoreDownloadMgr.getURLWithTimestamp(req.url, true);
                }
                req.method = "GET";
                req.jsonp = null; // not a json-p request
            }
        }
function ( req , path , preventTimestamp ) { if ( path ) { // change request url and method to target the requested file: req . url = ariaCoreDownloadMgr . resolveURL ( path , true ) ; if ( preventTimestamp !== true ) { req . url = ariaCoreDownloadMgr . getURLWithTimestamp ( req . url , true ) ; } req . method = "GET" ; req . jsonp = null ; // not a json-p request } }
Helper method to help redirecting a request to a file
@param {aria.core.CfgBeans:IOAsyncRequestCfg} req the filter request object
@param {String} path the file logical path or full URL. It can be null or empty and in this case the request
is not redirected. It is passed to aria.core.DownloadMgr.resolveURL(path,true), to build the url, taking root
maps into account. If it's a full URL it just returns.
@param {Boolean} preventTimestamp By default, a timestamp is added to the url to get this file. If this
parameter is true, no timestamp will be added.
Helper method to help redirecting a request to a file