Skip to content

version 3.2

Compare
Choose a tag to compare
@jirkapinkas jirkapinkas released this 25 Dec 12:47
· 137 commits to master since this release

Deprecated *Generator constructors, instead promote usage of of() methods to create *Generator objects. Example:

SitemapGenerator.of("http://www.javavids.com")
    .addPage(WebPage.builder().nameRoot().priorityMax().changeFreqNever().lastModNow().build())
    .addPages(urls, page -> WebPage.builder().name("dir/" + 
page).priorityMax().changeFreqNever().lastModNow().build())
    .constructAndSaveSitemap(file);

Also added to RssItemBuilder methods: titleCdata and descriptionCdata, which automatically surround content with CDATA