Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebResourceDownloadService #132

Open
mdutoo opened this issue Jan 31, 2013 · 0 comments
Open

WebResourceDownloadService #132

mdutoo opened this issue Jan 31, 2013 · 0 comments
Assignees

Comments

@mdutoo
Copy link
Member

mdutoo commented Jan 31, 2013

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:

  • 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

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

@ghost ghost assigned JGuillemotte Jan 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants