| java.lang.Object org.clapper.curn.FeedInfo
FeedInfo | public class FeedInfo (Code) | | 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.
See Also: CurnConfig version: $Revision: 7041 $ |
Constructor Summary | |
public | FeedInfo(URL siteURL) Default constructor.
Parameters: siteURL - the main URL for the site's RSS feed. |
DEFAULT_SAVE_AS_ENCODING | final public static String DEFAULT_SAVE_AS_ENCODING(Code) | | Default encoding for "save as" file.
|
FeedInfo | public FeedInfo(URL siteURL)(Code) | | Default constructor.
Parameters: siteURL - the main URL for the site's RSS feed. This constructornormalizes the URL. See Also: CurnUtil.normalizeURL |
equals | public boolean equals(Object obj)(Code) | | Determine whether this FeedInfo object is equivalent to
another one, based on the URL.
Parameters: obj - the other object true if obj is a FeedInfo objectthat specifies the same URL, false otherwise |
getDaysToCache | public int getDaysToCache()(Code) | | Get the number of days that URLs from this site are to be cached.
the number of days to cache URLs from this site. See Also: FeedInfo.setDaysToCache |
getForcedCharacterEncoding | public String getForcedCharacterEncoding()(Code) | | Get the forced character set encoding for this feed. If this
parameter is set, curn will ignore the character set encoding
advertised by the remote server (if any), and use the character set
specified by this configuration item instead. This is useful in the
following cases:
- the remote HTTP server doesn't supply an HTTP Content-Encoding
header, and the local (Java) default encoding doesn't match
the document's encoding
- the remote HTTP server supplies the wrong encoding
the forced character set encoding, or null if not configured |
getMillisecondsToCache | public long getMillisecondsToCache()(Code) | | Get the number of milliseconds that URLs from this site are to be
cached. This is a convenience front-end to getDaysToCache().
the number of milliseconds to cache URLs from this site See Also: FeedInfo.getDaysToCache See Also: FeedInfo.setDaysToCache |
getURL | public URL getURL()(Code) | | Get the main RSS URL for the site.
the site's main RSS URL, guaranteed to be normalized See Also: CurnUtil.normalizeURL |
hashCode | public int hashCode()(Code) | | Get the hash code for this feed
the hash code |
setForcedCharacterEncoding | void setForcedCharacterEncoding(String encoding)(Code) | | |
|
|