public class Sitemap
extends java.util.TimerTask
Constructor and Description |
---|
Sitemap(java.io.File directory,
java.lang.String urlRoot,
java.lang.String skin)
Construct a new instance of the Sitemap.
|
Modifier and Type | Method and Description |
---|---|
void |
generateSitemaps()
Generate all of the sitemap files needed to list the URLs from this
instance of Metacat, using the open sitemap format described here:
http://www.sitemaps.org/protocol.html
URLs are written to a single file, unless the maximum number of URLs
allowed in the sitemap file is exceeded, in which subsequent numbered
files are created.
|
void |
run()
Execute the timed task when called, in this case by generating the
sitemap files needed for this Metacat instance.
|
public Sitemap(java.io.File directory, java.lang.String urlRoot, java.lang.String skin)
directory
- the location to store sitemap filesurlRoot
- the base URL for constructing sitemap URLsskin
- the format skin to be used in URLspublic void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
public void generateSitemaps()
directory
- an existing File directory in which to write the sitemapsurlRoot
- the base URL to use in constructing document URLsskin
- the name of the skin to be used in formatting metacat
documentsCopyright © 2016 Regents of the University of California. All Rights Reserved.