public abstract class AbstractSiteMap extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractSiteMap.SitemapType
Various Sitemap types
|
Constructor and Description |
---|
AbstractSiteMap() |
Modifier and Type | Method and Description |
---|---|
static Date |
convertToDate(String date)
Convert the given date (given in an acceptable DateFormat), null if the
date is not in the correct format.
|
static DateFormat |
getFullDateFormat() |
Date |
getLastModified() |
AbstractSiteMap.SitemapType |
getType() |
URL |
getUrl() |
boolean |
isIndex() |
boolean |
isProcessed() |
static String |
normalizeRSSTimestamp(String pubDate)
Converts pubDate of RSS to the string representation which could be
parsed in
convertToDate(String) method. |
void |
setLastModified(Date lastModified) |
void |
setLastModified(String lastModified) |
void |
setProcessed(boolean processed) |
void |
setType(AbstractSiteMap.SitemapType type) |
protected URL url
public static DateFormat getFullDateFormat()
public boolean isIndex()
public URL getUrl()
public void setType(AbstractSiteMap.SitemapType type)
type
- the Sitemap type to setpublic AbstractSiteMap.SitemapType getType()
public void setProcessed(boolean processed)
processed
- - indicate if the Sitemap has been processed.public boolean isProcessed()
public void setLastModified(Date lastModified)
lastModified
- - the lastModified to setpublic void setLastModified(String lastModified)
lastModified
- - the lastModified to setpublic Date getLastModified()
public static Date convertToDate(String date)
date
- - the date to be parsedpublic static String normalizeRSSTimestamp(String pubDate)
convertToDate(String)
method.pubDate
- - date time of pubDate in RFC822Copyright © 2009–2017 Crawler-Commons. All rights reserved.