com.redfin.sitemapgenerator
Class SitemapIndexGenerator.Options

java.lang.Object
  extended by com.redfin.sitemapgenerator.SitemapIndexGenerator.Options
Enclosing class:
SitemapIndexGenerator

public static class SitemapIndexGenerator.Options
extends java.lang.Object

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

SitemapIndexGenerator.Options

public 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.

Parameters:
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

SitemapIndexGenerator.Options

public SitemapIndexGenerator.Options(java.lang.String baseUrl,
                                     java.io.File outFile)
                              throws java.net.MalformedURLException
Configures the generator with a base URL and destination to write the sitemap index file.

Parameters:
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
Throws:
java.net.MalformedURLException
Method Detail

dateFormat

public SitemapIndexGenerator.Options dateFormat(W3CDateFormat dateFormat)
The date formatter, typically configured with a W3CDateFormat.Pattern and/or a time zone


defaultLastMod

public 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. We don't recommend this; Google may not like you as much.


autoValidate

public SitemapIndexGenerator.Options autoValidate(boolean autoValidate)
Validate the sitemap index automatically after writing it; this takes time


build

public SitemapIndexGenerator build()
Constructs a sitemap index generator configured with the options you specified



Copyright © 2009. All Rights Reserved.