public static class SitemapIndexGenerator.Options extends Object
| Constructor and Description |
|---|
Options(String
Configures the generator with a base URL and destination to write the sitemap index file.
|
Options(URL
Configures the generator with a base URL and destination to write the sitemap index file.
|
| Modifier and Type | Method and Description |
|---|---|
SitemapIndexGenerator |
autoValidate(boolean autoValidate)
Validate the sitemap index automatically after writing it; this takes time
|
SitemapIndexGenerator |
build()
Constructs a sitemap index generator configured with the options you specified
|
SitemapIndexGenerator |
dateFormat(W3CDateFormat
The date formatter, typically configured with a
W3CDateFormat.Pattern and/or a time zone
|
SitemapIndexGenerator |
defaultLastMod(Date
The default lastMod date for sitemap indexes; the default default is now, but you can pass in null to omit a lastMod entirely.
|
public Options(URLbaseUrl, File outFile)
baseUrl - All URLs in the generated sitemap(s) should appear under this base URL
outFile - The sitemap index will be written out at this location
public Options(StringbaseUrl, File outFile) throws MalformedURLException
baseUrl - All URLs in the generated sitemap(s) should appear under this base URL
outFile - The sitemap index will be written out at this location
MalformedURLException
public SitemapIndexGenerator.Options dateFormat(W3CDateFormat dateFormat)
W3CDateFormat.Pattern and/or a time zone
public SitemapIndexGenerator.Options defaultLastMod(Date defaultLastMod)
public SitemapIndexGenerator.Options autoValidate(boolean autoValidate)
public SitemapIndexGeneratorbuild()