Write a RoutingWebResourceDownloadServiceImpl implementation that calls successively all WebResourceDownloadServices injected in its "delegates" properties until one returns a non-null answer
Write a UrlPatternWebResourceDownloadServiceImpl that only downloads and returns the file if the URL matches the regex pattern provided in its property "urlPattern"
Instanciate it in FraSCAti Studio in its own composite (so that it can easily be instanciated in ex. HTTPProxy or F in N), the first only once - and provide and plug it in loadWsdl() and compile(), the second with the following instances plugged in the first one:
EasySOARegistryWebResourceDownload component, with a pattern [http|https]://(.*)/nuxeo(.+) and the same Nuxeo auth Intent that is used for the SimpleRegistryService. BETTER : use in the pattern the actual url of Nuxeo that is in the SimpleRegistryService reference through a common FraSCAti property.
MyCompanyIntranetWebResourceDownload component, with a pattern for [http|https]://mycompany.com(.*) (test it with Open Wide)
DefaultWebResourceDownload component, with the * pattern, and a commented sample configuration of web Proxy Intent
LATER study
how on-demand proxies / GeneratedAppService may be used to instanciate the second kind,
Define in FraSCAti / JAXRS a WebResourceDownloadService.get(url)
Write a RoutingWebResourceDownloadServiceImpl implementation that calls successively all WebResourceDownloadServices injected in its "delegates" properties until one returns a non-null answer
Write a UrlPatternWebResourceDownloadServiceImpl that only downloads and returns the file if the URL matches the regex pattern provided in its property "urlPattern"
Instanciate it in FraSCAti Studio in its own composite (so that it can easily be instanciated in ex. HTTPProxy or F in N), the first only once - and provide and plug it in loadWsdl() and compile(), the second with the following instances plugged in the first one:
LATER study
or possibly using IntentWeaver (??) see http://websvn.ow2.org/filedetails.php?repname=frascati&path=%2Ftrunk%2Ffrascati%2Fintents%2Fuml-sequence-diagram%2Fsrc%2Fmain%2Fjava%2Forg%2Fow2%2Ffrascati%2Fintent%2Flib%2FIntentHandlerWeaver.java