Class RssGenerator

    • Constructor Detail

      • RssGenerator

        public RssGenerator​(String baseUrl,
                            boolean root,
                            String webTitle,
                            String webDescription)
        Create RssGenerator
        Parameters:
        baseUrl - Base URL
        root - If Base URL is root (for example http://www.javavids.com or if it's some path like http://www.javalibs.com/blog)
        webTitle - Web title
        webDescription - Web description
      • RssGenerator

        public RssGenerator​(String baseUrl,
                            String webTitle,
                            String webDescription)
        Create RssGenerator. Root = true.
        Parameters:
        baseUrl - Base URL
        webTitle - Web title
        webDescription - Web description
    • Method Detail

      • constructRss

        public String constructRss()
        This will construct RSS from web pages. Web pages are sorted using lastMod in descending order (latest is first)
        Returns:
        Constructed RSS