com.redfin.sitemapgenerator
Class GoogleNewsSitemapUrl

java.lang.Object
  extended by com.redfin.sitemapgenerator.WebSitemapUrl
      extended by com.redfin.sitemapgenerator.GoogleNewsSitemapUrl

public class GoogleNewsSitemapUrl
extends WebSitemapUrl

One configurable Google News Search URL. To configure, use GoogleNewsSitemapUrl.Options

Author:
Dan Fabulich
See Also:
GoogleNewsSitemapUrl.Options, Creating a News Sitemap

Nested Class Summary
static class GoogleNewsSitemapUrl.Options
          Options to configure Google News URLs
 
Constructor Summary
GoogleNewsSitemapUrl(GoogleNewsSitemapUrl.Options options)
          Configures an URL with options
GoogleNewsSitemapUrl(java.lang.String url, java.util.Date publicationDate)
          Specifies an URL and publication date (which is mandatory for Google News)
GoogleNewsSitemapUrl(java.net.URL url, java.util.Date publicationDate)
          Specifies an URL and publication date (which is mandatory for Google News)
 
Method Summary
 java.lang.String getKeywords()
          Retrieves the list of comma-delimited keywords
 java.util.Date getPublicationDate()
          Retrieves the publication date
 
Methods inherited from class com.redfin.sitemapgenerator.WebSitemapUrl
getChangeFreq, getLastMod, getPriority, getUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleNewsSitemapUrl

public GoogleNewsSitemapUrl(java.net.URL url,
                            java.util.Date publicationDate)
Specifies an URL and publication date (which is mandatory for Google News)


GoogleNewsSitemapUrl

public GoogleNewsSitemapUrl(java.lang.String url,
                            java.util.Date publicationDate)
                     throws java.net.MalformedURLException
Specifies an URL and publication date (which is mandatory for Google News)

Throws:
java.net.MalformedURLException

GoogleNewsSitemapUrl

public GoogleNewsSitemapUrl(GoogleNewsSitemapUrl.Options options)
Configures an URL with options

Method Detail

getPublicationDate

public java.util.Date getPublicationDate()
Retrieves the publication date


getKeywords

public java.lang.String getKeywords()
Retrieves the list of comma-delimited keywords



Copyright © 2009. All Rights Reserved.