Class RssGenerator

    • Constructor Detail

      • RssGenerator

        @Deprecated
        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
    • Method Detail

      • of

        public static RssGenerator of​(String baseUrl,
                                      boolean root,
                                      String webTitle,
                                      String webDescription)
        Helper method to create an instance of SitemapGenerator
        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
        Returns:
        Instance of RssGenerator
      • of

        public static RssGenerator of​(String baseUrl,
                                      String webTitle,
                                      String webDescription)
        Helper method to create an instance of SitemapGenerator
        Parameters:
        baseUrl - Base URL
        webTitle - Web title
        webDescription - Web description
        Returns:
        Instance of RssGenerator
      • of

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

        public RssGenerator webTitle​(String webTitle)
        Set Web title
        Parameters:
        webTitle - Web title
        Returns:
        this
      • webDescription

        public RssGenerator webDescription​(String webDescription)
        Set Web description
        Parameters:
        webDescription - Web description
        Returns:
        this
      • 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