org.apache.wicket.extensions.sitemap
Class BasicSiteMapEntry
java.lang.Object
org.apache.wicket.extensions.sitemap.BasicSiteMapEntry
- All Implemented Interfaces:
- ISiteMapEntry
public class BasicSiteMapEntry
- extends java.lang.Object
- implements ISiteMapEntry
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicSiteMapEntry
public BasicSiteMapEntry(java.lang.String url)
BasicSiteMapEntry
public BasicSiteMapEntry(java.lang.String url,
java.util.Date modified,
double priority,
ISiteMapEntry.CHANGEFREQ frequency)
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.