ACS Commons provides OSGI Sitemap config service to generate sitemap xml file which is used by web crawler to optimize web search results. The provided sitemap servlet takes input from externalizer configuration which acts as domain to the list of content pages. This hosted configuration would have a root domain to the list of locales available for an application. This remains constant for applications having more than one domain and the purpose of multiples domains is not achieved. This can be achieved via switching externalizer domain config to page properties values. Example shown below:
From externalizer setting:
String loc = externalizer.externalLink(resolver, externalizerDomain,
writeElement(stream, "loc", loc);
New Page properties Config value to be taken from each country landing page:
Resource resource = request.getResource();
InheritanceValueMap iProperties = new HierarchyNodeInheritanceValueMap(resource);
Our site is having multiple domain i.e. around 40 sites which have separate domain names. Can somebody help us here in finding out how can we extend ACS common sitemap generator Servlet to generate sitemap.xml for 40 different domains without creating separate configuration for each domain?