public class SiteMapURL extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SiteMapURL.ChangeFrequency
Allowed change frequencies
|
Modifier and Type | Field and Description |
---|---|
static double |
defaultPriority |
Constructor and Description |
---|
SiteMapURL(String url,
boolean valid) |
SiteMapURL(String url,
String lastModified,
String changeFreq,
String priority,
boolean valid) |
SiteMapURL(URL url,
boolean valid) |
SiteMapURL(URL url,
Date lastModified,
SiteMapURL.ChangeFrequency changeFreq,
double priority,
boolean valid) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
SiteMapURL.ChangeFrequency |
getChangeFrequency()
Return the URL's change frequency
|
Date |
getLastModified()
Return when this URL was last modified.
|
double |
getPriority()
Return this URL's priority (a value between [0.0 - 1.0]).
|
URL |
getUrl()
Return the URL.
|
int |
hashCode() |
boolean |
isValid() |
void |
setChangeFrequency(SiteMapURL.ChangeFrequency changeFreq)
Set the URL's change frequency
|
void |
setChangeFrequency(String changeFreq)
Set the URL's change frequency In case of a bad ChangeFrequency, the
current frequency in this instance will be set to NULL
|
void |
setLastModified(Date lastModified)
Set when this URL was last modified.
|
void |
setLastModified(String lastModified)
Set when this URL was last modified.
|
void |
setPriority(double priority)
Set the URL's priority to a value between [0.0 - 1.0] (Default Priority
is used if the given priority is out of range).
|
void |
setPriority(String priorityStr)
Set the URL's priority to a value between [0.0 - 1.0] (Default Priority
is used if the given priority missing or is out of range).
|
void |
setUrl(String url)
Set the URL.
|
void |
setUrl(URL url)
Set the URL.
|
void |
setValid(boolean valid) |
String |
toString() |
public SiteMapURL(String url, boolean valid)
public SiteMapURL(URL url, boolean valid)
public SiteMapURL(String url, String lastModified, String changeFreq, String priority, boolean valid)
public SiteMapURL(URL url, Date lastModified, SiteMapURL.ChangeFrequency changeFreq, double priority, boolean valid)
public URL getUrl()
public void setUrl(URL url)
url
- public void setUrl(String url)
url
- In case of Malformed URL, the current url in this instance
will be set to NULLpublic Date getLastModified()
public void setLastModified(String lastModified)
lastModified
- public void setLastModified(Date lastModified)
lastModified
- public double getPriority()
public void setPriority(double priority)
priority
- public void setPriority(String priorityStr)
priorityStr
- public SiteMapURL.ChangeFrequency getChangeFrequency()
public void setChangeFrequency(SiteMapURL.ChangeFrequency changeFreq)
changeFreq
- public void setChangeFrequency(String changeFreq)
changeFreq
- public void setValid(boolean valid)
public boolean isValid()
Copyright © 2015. All rights reserved.