|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.redfin.sitemapgenerator.SitemapIndexGenerator.Options
public static class SitemapIndexGenerator.Options
Options to configure sitemap index generation
| Constructor Summary | |
|---|---|
SitemapIndexGenerator.Options(java.lang.String baseUrl,
java.io.File outFile)
Configures the generator with a base URL and destination to write the sitemap index file. |
|
SitemapIndexGenerator.Options(java.net.URL baseUrl,
java.io.File outFile)
Configures the generator with a base URL and destination to write the sitemap index file. |
|
| Method Summary | |
|---|---|
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(java.util.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SitemapIndexGenerator.Options(java.net.URL baseUrl,
java.io.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 location
public SitemapIndexGenerator.Options(java.lang.String baseUrl,
java.io.File outFile)
throws java.net.MalformedURLException
baseUrl - All URLs in the generated sitemap(s) should appear under this base URLoutFile - The sitemap index will be written out at this location
java.net.MalformedURLException| Method Detail |
|---|
public SitemapIndexGenerator.Options dateFormat(W3CDateFormat dateFormat)
W3CDateFormat.Pattern and/or a time zone
public SitemapIndexGenerator.Options defaultLastMod(java.util.Date defaultLastMod)
public SitemapIndexGenerator.Options autoValidate(boolean autoValidate)
public SitemapIndexGenerator build()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||