Project

General

Profile

« Previous | Next » 

Revision 3244

Added by Matt Jones about 17 years ago

Added a new class called Sitemap that is used to generate a series of XML documents representing the URLs of metacat documents following the sitemap protocol. The Sitemap class extends TimerTask so that it can be scheduled to run once a day or so. New configuration options were added to metacat.properties to control where the sitemaps are written and hw often they are updated. By default we do it once a day, as more often is overkill for search engines.

Included a JUnit unit test to test the Sitemap generation functionality.

Included changes to MetaCatServlet to schedule the Sitemap task the first time Metacat is called.

View differences:

metacat.properties
264 264
metacatUrl=@systemidserver@@servlet-path@
265 265
baseUrl=@systemidserver@@html-path@
266 266
# END spatial options
267

  
268
# START sitemap properties
269

  
270
# relative directory path in which sitemap files should be written
271
sitemapDirectory=@install-dir@/sitemaps
272

  
273
# Interval (in milliseconds) between rebuilding the sitemap
274
sitemapInterval=86400000
275

  
276
# END sitemap properties

Also available in: Unified diff