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
-
-
Constructor Summary
Constructors Constructor Description SitemapGenerator(String baseUrl)This constructor is public, because sometimes somebody wants SitemapGenerator to be a Spring bean and Spring wants to create a proxy which requires public constructor.
-
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, getAbsoluteUrl, ping, pingBing, pingBing, pingBing, pingBing, pingGoogle, pingGoogle, pingGoogle, pingGoogle, resetDefaultChangeFreq, resetDefaultDir, resetDefaultExtension, resetDefaultLastMod, resetDefaultPriority, setHttpClient, toFile, toFile, 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
-
-
-
-
Constructor Detail
-
SitemapGenerator
public SitemapGenerator(String baseUrl)
This constructor is public, because sometimes somebody wants SitemapGenerator to be a Spring bean and Spring wants to create a proxy which requires public constructor. But you shouldn't call this constructor on your own, useof(String)instead.- Parameters:
baseUrl- Base URL
-
-
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
-
-