AnsweredAssumed Answered

Alfresco server url from within Webscript

Question asked by calle on Oct 22, 2008
Hello
I need to compose the complete URL to content inside Alfresco. This means something like
http://alfrescoserver.com/alfresco/d/a/versionStore/lightWeightVersionStore/d10a395a-9f6e-11dd-8f5d-4f6195cece45/mydoc.doc

From the DownloadContentServlet I can easily generate the latter part (d/a/versionStore/lightWeightVersionStore/d10a395a-9f6e-11dd-8f5d-4f6195cece45/mydoc.doc), but how can I dynamically lookup the hostname and path to alfresco? I would really prefer *not* defining it as a constant…

//carl

Outcomes