|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.clapper.curn.FeedInfo
public class FeedInfo
Contains data for one feed (or site). The data about the feed comes from the configuration file. The feed itself comes from parsing the RSS data.
CurnConfig| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_SAVE_AS_ENCODING
Default encoding for "save as" file. |
| Constructor Summary | |
|---|---|
FeedInfo(java.net.URL siteURL)
Default constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Determine whether this FeedInfo object is equivalent to another one, based on the URL. |
int |
getDaysToCache()
Get the number of days that URLs from this site are to be cached. |
java.lang.String |
getForcedCharacterEncoding()
Get the forced character set encoding for this feed. |
long |
getMillisecondsToCache()
Get the number of milliseconds that URLs from this site are to be cached. |
java.net.URL |
getURL()
Get the main RSS URL for the site. |
int |
hashCode()
Get the hash code for this feed |
void |
setDaysToCache(int cacheDays)
Set the "days to cache" value. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_SAVE_AS_ENCODING
| Constructor Detail |
|---|
public FeedInfo(java.net.URL siteURL)
siteURL - the main URL for the site's RSS feed. This constructor
normalizes the URL.CurnUtil.normalizeURL(java.net.URL)| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the other object
public java.net.URL getURL()
CurnUtil.normalizeURL(java.net.URL)public int getDaysToCache()
setDaysToCache(int)public long getMillisecondsToCache()
getDaysToCache(),
setDaysToCache(int)public void setDaysToCache(int cacheDays)
cacheDays - new valuegetDaysToCache(),
getMillisecondsToCache()public java.lang.String getForcedCharacterEncoding()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||