Class SitemapGenerator
- java.lang.Object
-
- cz.jiripinkas.jsitemapgenerator.AbstractGenerator<T>
-
- cz.jiripinkas.jsitemapgenerator.AbstractSitemapGenerator<SitemapGenerator>
-
- cz.jiripinkas.jsitemapgenerator.generator.SitemapGenerator
-
public class SitemapGenerator extends AbstractSitemapGenerator<SitemapGenerator>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSitemapGenerator.AdditionalNamespace-
Nested classes/interfaces inherited from class cz.jiripinkas.jsitemapgenerator.AbstractGenerator
AbstractGenerator.GeneratorConsumerWithException<T>, AbstractGenerator.RunnableWithException, AbstractGenerator.StringSupplierWithException<S>
-
-
Field Summary
-
Fields inherited from class cz.jiripinkas.jsitemapgenerator.AbstractSitemapGenerator
dateFormat
-
Fields inherited from class cz.jiripinkas.jsitemapgenerator.AbstractGenerator
baseUrl, urls
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringconstructImage(Image image)protected StringconstructUrl(WebPage webPage)static SitemapGeneratorof(String baseUrl)Helper method to create an instance of SitemapGeneratorString[]toStringArray()Construct sitemap into array of Strings.-
Methods inherited from class cz.jiripinkas.jsitemapgenerator.AbstractSitemapGenerator
beforeAddPageEvent, defaultChangeFreq, defaultChangeFreqAlways, defaultChangeFreqDaily, defaultChangeFreqHourly, defaultChangeFreqMonthly, defaultChangeFreqNever, defaultChangeFreqWeekly, defaultChangeFreqYearly, defaultDir, defaultDir, defaultExtension, defaultLastMod, defaultLastMod, defaultLastModNow, defaultPriority, defaultPriorityMax, getAbsoluteUrl, pingBing, pingBing, pingGoogle, pingGoogle, resetDefaultChangeFreq, resetDefaultDir, resetDefaultExtension, resetDefaultLastMod, resetDefaultPriority, setHttpClient, toFile, toFile, toFile, toGzipByteArray, toGzipByteArray, toPrettyString, toPrettyString, toString, toString
-
Methods inherited from class cz.jiripinkas.jsitemapgenerator.AbstractGenerator
addPage, addPage, addPage, addPageNames, addPageNames, addPages, addPages, addPages, addPages, getThis, run, run, toPrettyXmlString
-
-
-
-
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
-
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:
toStringArrayin classAbstractSitemapGenerator<SitemapGenerator>- Returns:
- sitemap
-
-