org.apache.wicket.extensions.sitemap
Class BasicSiteMapEntry

java.lang.Object
  extended by org.apache.wicket.extensions.sitemap.BasicSiteMapEntry
All Implemented Interfaces:
ISiteMapEntry

public class BasicSiteMapEntry
extends java.lang.Object
implements ISiteMapEntry


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.wicket.extensions.sitemap.ISiteMapEntry
ISiteMapEntry.CHANGEFREQ
 
Constructor Summary
BasicSiteMapEntry(java.lang.String url)
           
BasicSiteMapEntry(java.lang.String url, java.util.Date modified, double priority, ISiteMapEntry.CHANGEFREQ frequency)
           
 
Method Summary
 ISiteMapEntry.CHANGEFREQ getFrequency()
           
 java.util.Date getModified()
           
 java.lang.Double getPriority()
           
 java.lang.String getUrl()
          required value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicSiteMapEntry

public BasicSiteMapEntry(java.lang.String url)

BasicSiteMapEntry

public BasicSiteMapEntry(java.lang.String url,
                         java.util.Date modified,
                         double priority,
                         ISiteMapEntry.CHANGEFREQ frequency)
Method Detail

getUrl

public java.lang.String getUrl()
Description copied from interface: ISiteMapEntry
required value. may not be null.

Specified by:
getUrl in interface ISiteMapEntry
Returns:
URL of the page. This URL must begin with the protocol (such as http) and end with a trailing slash, if your web server requires it. This value must be less than 2,048 characters

getModified

public java.util.Date getModified()
Specified by:
getModified in interface ISiteMapEntry
Returns:
The date of last modification of the file.

getPriority

public java.lang.Double getPriority()
Specified by:
getPriority in interface ISiteMapEntry
Returns:
The priority of this URL relative to other URLs on your site. Valid values range from 0.0 to 1.0. The default priority of a page is 0.5.

Also, please note that assigning a high priority to all of the URLs on your site is not likely to help you. Since the priority is relative, it is only used to select between URLs on your site.


getFrequency

public ISiteMapEntry.CHANGEFREQ getFrequency()
Specified by:
getFrequency in interface ISiteMapEntry
Returns:
How frequently the page is likely to change.


Copyright © 2011. All Rights Reserved.