Package io.goobi.viewer.model.sitemap
Class SitemapBuilder
java.lang.Object
io.goobi.viewer.model.sitemap.SitemapBuilder
Resource for sitemap generation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidupdateSitemap(String outputPath, String viewerRootUrl) Starts a single-threaded sitemap generation run.
-
Constructor Details
-
SitemapBuilder
-
-
Method Details
-
updateSitemap
public void updateSitemap(SitemapRequestParameters params) throws AccessDeniedException, de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException, org.json.JSONException, PresentationException - Throws:
AccessDeniedExceptionde.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestExceptionorg.json.JSONExceptionPresentationException
-
updateSitemap
public void updateSitemap(String outputPath, String viewerRootUrl) throws AccessDeniedException, org.json.JSONException, PresentationException Starts a single-threaded sitemap generation run. Only one generation may be active at a time; concurrent calls throwAccessDeniedException. After completion the static worker thread reference is cleared so the capturedSitemapinstance becomes eligible for GC.- Parameters:
outputPath- Destination directory for the generated sitemap XML filesviewerRootUrl- Viewer root URL used in sitemap <loc> elements- Throws:
AccessDeniedException- if a generation is already in progressorg.json.JSONException- if the status JSON cannot be constructedPresentationException- if the worker thread reported a failure or was interrupted
-