com.redfin.sitemapgenerator
Class WebSitemapUrl

java.lang.Object
  extended by com.redfin.sitemapgenerator.WebSitemapUrl
Direct Known Subclasses:
GoogleCodeSitemapUrl, GoogleGeoSitemapUrl, GoogleMobileSitemapUrl, GoogleNewsSitemapUrl, GoogleVideoSitemapUrl

public class WebSitemapUrl
extends java.lang.Object

Encapsulates a single URL to be inserted into a Web sitemap (as opposed to a Geo sitemap, a Mobile sitemap, a Video sitemap, etc which are Google specific). Specifying a lastMod, changeFreq, or priority is optional; you specify those by using an Options object.

Author:
Dan Fabulich
See Also:
WebSitemapUrl.Options

Nested Class Summary
static class WebSitemapUrl.Options
          Options to configure web sitemap URLs
 
Constructor Summary
WebSitemapUrl(java.lang.String url)
          Encapsulates a single simple URL
WebSitemapUrl(java.net.URL url)
          Encapsulates a single simple URL
WebSitemapUrl(WebSitemapUrl.Options options)
          Creates an URL with configured options
 
Method Summary
 ChangeFreq getChangeFreq()
          Retrieves the AbstractSitemapUrlOptions.changeFreq(ChangeFreq)
 java.util.Date getLastMod()
          Retrieves the AbstractSitemapUrlOptions.lastMod(Date)
 java.lang.Double getPriority()
          Retrieves the AbstractSitemapUrlOptions.priority(Double)
 java.net.URL getUrl()
          Retrieves the url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSitemapUrl

public WebSitemapUrl(java.lang.String url)
              throws java.net.MalformedURLException
Encapsulates a single simple URL

Throws:
java.net.MalformedURLException

WebSitemapUrl

public WebSitemapUrl(java.net.URL url)
Encapsulates a single simple URL


WebSitemapUrl

public WebSitemapUrl(WebSitemapUrl.Options options)
Creates an URL with configured options

Method Detail

getLastMod

public java.util.Date getLastMod()
Retrieves the AbstractSitemapUrlOptions.lastMod(Date)


getChangeFreq

public ChangeFreq getChangeFreq()
Retrieves the AbstractSitemapUrlOptions.changeFreq(ChangeFreq)


getPriority

public java.lang.Double getPriority()
Retrieves the AbstractSitemapUrlOptions.priority(Double)


getUrl

public java.net.URL getUrl()
Retrieves the url



Copyright © 2009. All Rights Reserved.