public class Sitemap
extends java.util.TimerTask
Constructor and Description |
---|
Sitemap(java.io.File directory,
java.lang.String locationBase,
java.lang.String entryBase)
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 locationBase, java.lang.String entryBase)
directory
- the location to store sitemap fileslocationBase
- the base URL for constructing sitemap location URLsentryBase
- the base URL for constructing sitemap entry URLspublic void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
public void generateSitemaps()
Copyright © 2020 Regents of the University of California. All Rights Reserved.