public static class SitemapIndexGenerator.Options extends Object
| Constructor and Description |
|---|
Options(String baseUrl,
File outFile)
Configures the generator with a base URL and destination to write the sitemap index file.
|
Options(URL baseUrl,
File outFile)
Configures the generator with a base URL and destination to write the sitemap index file.
|
| Modifier and Type | Method and Description |
|---|---|
SitemapIndexGenerator.Options |
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.Options |
dateFormat(W3CDateFormat dateFormat)
The date formatter, typically configured with a
W3CDateFormat.Pattern and/or a time zone |
SitemapIndexGenerator.Options |
defaultLastMod(Date defaultLastMod)
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(URL baseUrl, File outFile)
baseUrl - All URLs in the generated sitemap(s) should appear under this base URLoutFile - The sitemap index will be written out at this locationpublic Options(String baseUrl, File outFile) throws MalformedURLException
baseUrl - All URLs in the generated sitemap(s) should appear under this base URLoutFile - The sitemap index will be written out at this locationMalformedURLExceptionpublic SitemapIndexGenerator.Options dateFormat(W3CDateFormat dateFormat)
W3CDateFormat.Pattern and/or a time zonepublic SitemapIndexGenerator.Options defaultLastMod(Date defaultLastMod)
public SitemapIndexGenerator.Options autoValidate(boolean autoValidate)
public SitemapIndexGenerator build()
Copyright © 2015. All rights reserved.