Class SitemapGenerator

    • Constructor Detail

      • SitemapGenerator

        @Deprecated
        public SitemapGenerator​(String baseUrl,
                                SitemapGenerator.AdditionalNamespace[] additionalNamespaces)
        Deprecated.
        Additional namespaces are automatically resolved since 3.11
        Parameters:
        baseUrl - Base URL
        additionalNamespaces - Additional parameters
    • Method Detail

      • of

        public static SitemapGenerator of​(String baseUrl)
        Helper method to create an instance of SitemapGenerator
        Parameters:
        baseUrl - Base URL
        Returns:
        Instance of SitemapGenerator
      • of

        @Deprecated
        public static SitemapGenerator of​(String baseUrl,
                                          SitemapGenerator.AdditionalNamespace[] additionalNamespaces)
        Deprecated.
        Additional namespaces are automatically resolved since 3.11
        Helper method to create an instance of SitemapGenerator
        Parameters:
        baseUrl - Base URL
        additionalNamespaces - Additional parameters
        Returns:
        Instance of SitemapGenerator
      • constructSitemap

        @Deprecated
        public String[] constructSitemap()
        Deprecated.
        Use toStringArray() instead
        Construct sitemap into array of Strings. The URLs will be ordered using priority in descending order (URLs with higher priority will be at the top).
        Returns:
        sitemap
      • toStringArray

        public String[] toStringArray()
        Construct sitemap into array of Strings. The URLs will be ordered using priority in descending order (URLs with higher priority will be at the top).
        Specified by:
        toStringArray in class AbstractSitemapGenerator<SitemapGenerator>
        Returns:
        sitemap
      • constructImage

        protected String constructImage​(Image image)
      • constructUrl

        protected String constructUrl​(WebPage webPage)