public class GenerateSitemaps
extends java.lang.Object
| Constructor and Description |
|---|
GenerateSitemaps() |
| Modifier and Type | Method and Description |
|---|---|
static void |
generateSitemaps(boolean makeHTMLMap,
boolean makeSitemapOrg)
Generate sitemap.org protocol and/or basic HTML sitemaps.
|
static void |
main(java.lang.String[] args) |
static void |
pingConfiguredSearchEngines()
Ping all search engines configured in
dspace.cfg. |
static void |
pingSearchEngine(java.lang.String engineURL)
Ping the given search engine.
|
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic static void generateSitemaps(boolean makeHTMLMap,
boolean makeSitemapOrg)
throws java.sql.SQLException,
java.io.IOException
makeHTMLMap - if true, generate an HTML sitemap.makeSitemapOrg - if true, generate an sitemap.org sitemap.java.sql.SQLException - if a database error occurs.java.io.IOException - if IO error occurs.public static void pingConfiguredSearchEngines()
throws java.io.UnsupportedEncodingException
dspace.cfg.java.io.UnsupportedEncodingException - theoretically should never happenpublic static void pingSearchEngine(java.lang.String engineURL)
throws java.net.MalformedURLException,
java.io.UnsupportedEncodingException
engineURL - Search engine URL minus protocol etc, e.g.
www.google.comjava.net.MalformedURLException - if the passed in URL is malformedjava.io.UnsupportedEncodingException - theoretically should never happenCopyright © 2018 DuraSpace. All Rights Reserved.