public class GenerateSitemaps extends 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(String[] args) |
static void |
pingConfiguredSearchEngines()
Ping all search engines configured in
dspace.cfg. |
static void |
pingSearchEngine(String engineURL)
Ping the given search engine.
|
public static void generateSitemaps(boolean makeHTMLMap,
boolean makeSitemapOrg)
throws SQLException,
IOException
makeHTMLMap - if true, generate an HTML sitemap.makeSitemapOrg - if true, generate an sitemap.org sitemap.SQLException - if database error
if a database error occurs.IOException - if IO error
if IO error occurs.public static void pingConfiguredSearchEngines()
throws UnsupportedEncodingException
dspace.cfg.UnsupportedEncodingException - theoretically should never happenpublic static void pingSearchEngine(String engineURL) throws MalformedURLException, UnsupportedEncodingException
engineURL - Search engine URL minus protocol etc, e.g.
www.google.comMalformedURLException - if the passed in URL is malformedUnsupportedEncodingException - theoretically should never happenCopyright © 2017 DuraSpace. All rights reserved.