|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.clapper.curn.FeedCacheEntry
public class FeedCacheEntry
Defines the contents of a cache entry. There is one cache entry per feed item.
CurnConfig,
FeedInfo| Constructor Summary | |
|---|---|
FeedCacheEntry(java.lang.String entryID,
java.net.URL channelURL,
java.net.URL entryURL,
java.util.Date pubDate,
long timestamp)
Construct a new FeedCacheEntry. |
|
| Method Summary | |
|---|---|
java.net.URL |
getEntryURL()
Get the URL for this entry. |
java.util.Date |
getPublicationDate()
Get the publication date associated with the cached item. |
long |
getTimestamp()
Get the timestamp associated with this entry. |
boolean |
isChannelEntry()
Determine whether this entry is a channel entry or not. |
void |
setTimestamp(long timestamp)
Set the timestamp associated with this entry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FeedCacheEntry(java.lang.String entryID,
java.net.URL channelURL,
java.net.URL entryURL,
java.util.Date pubDate,
long timestamp)
entryID - the entry's unique ID.channelURL - the main URL for the site's RSS feedentryURL - the URL to be cached. May be an individual item URL,
or the channel URL (again).pubDate - the publication date of the item, or null if unknowntimestamp - the timestamp (milliseconds) to be cached| Method Detail |
|---|
public boolean isChannelEntry()
entry.getChannelURL().sameFile(entry.getEntryURL())
public java.net.URL getEntryURL()
public java.util.Date getPublicationDate()
public long getTimestamp()
public void setTimestamp(long timestamp)
timestamp - the timestamp
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||