AnsweredAssumed Answered

Webscript response template

Question asked by simo2010 on Jul 17, 2010
Latest reply on Jul 23, 2010 by openpj

I want to  implement a distributed ECM Architecture using Alfresco as backend Content server.
The architecture components are:
-A foreign Web Application (view)
-Alfresco 3.2, (Model)
-A Connector (controller/Dispatcher)
the idea behind the connector is to provide more interfaces to other ECM products in the future, but actually it exposes only interface to Alfresco.

The communication between the connector and the web App. will be realized using Servlets, whereas the connector communicates with Alfresco Repo. Server using RESTful webscripts, which generate FreeMarker Responses based on templates (XML, HTM, JSON etc…).

My problem: the connector receive a request from the web app. for example to download ein  file (Doc, PDF, XML ,txt or wathever) and forward that request to a webscript ,possibly costum java backed, but also built-in web scripts in some cases, that web script must send the content back to the connector as File Object that can be appened to a HttpServletResponse Object andsent back to the web app. But i don't know which FreeMarker Template i must use, because the connector act as middleware and therefore, and the webscripts by alfresco assume the the client provide a Browser .

any help.