no.sesat.search.sitemap
Class Page

java.lang.Object
  extended by no.sesat.search.sitemap.Page

public final class Page
extends Object

This class is a representation of a single entry in a google sitemaps file.


Nested Class Summary
static class Page.Frequency
           
 
Constructor Summary
Page(URI location)
          Creates a new page of a site map.
Page(URI location, Date lastModified, Page.Frequency frequency, double priority)
          Creates a new page of a site map.
 
Method Summary
 Page.Frequency getFrequency()
          The frequence at which the page is usually updated.
 Date getLastModified()
          The date the page was last modified.
 URI getLocation()
          The URL of the page.
 double getPriority()
          The priority of the page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Page

public Page(URI location)
Creates a new page of a site map.

Parameters:
location - the URL of the page.

Page

public Page(URI location,
            Date lastModified,
            Page.Frequency frequency,
            double priority)
Creates a new page of a site map.

Parameters:
location - the URL of the page.
lastModified - the date of last modification.
frequency - the frequency at which the page is updated.
priority - the priority of the page.
Method Detail

getLocation

public URI getLocation()
The URL of the page. Never null.

Returns:
the URL.

getLastModified

public Date getLastModified()
The date the page was last modified. Optional and might be null.

Returns:
The last modification date.

getFrequency

public Page.Frequency getFrequency()
The frequence at which the page is usually updated.

Returns:
the update frequency.

getPriority

public double getPriority()
The priority of the page.

Returns:
The priority of the page.


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.