|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PreFeedDownloadPlugIn
This interface defines the methods that must be supported by plug-ins that wish to be notified just before curn downloads a feed.
PlugIn,
MetaPlugIn,
PostFeedDownloadPlugIn,
PostFeedParsePlugIn,
Curn| Method Summary | |
|---|---|
boolean |
runPreFeedDownloadPlugIn(FeedInfo feedInfo,
java.net.URLConnection urlConn)
Called just before a feed is downloaded. |
| Methods inherited from interface org.clapper.curn.PlugIn |
|---|
getPlugInName, getPlugInSortKey, initPlugIn |
| Method Detail |
|---|
boolean runPreFeedDownloadPlugIn(FeedInfo feedInfo,
java.net.URLConnection urlConn)
throws CurnException
Called just before a feed is downloaded. This method can return false to signal curn that the feed should be skipped. The plug-in method can also set values on the URLConnection used to download the plug-in, via URL.setRequestProperty(). (Note that all URLs, even file: URLs, are passed into this method. Setting a request property on the URLConnection object for a file: URL will have no effect--though it isn't specifically harmful.)
Possible uses for a pre-feed download plug-in include:
feedInfo - the FeedInfo object for the feed to be
downloadedurlConn - the java.net.URLConnection object that will
be used to download the feed's XML.
CurnException - on errorFeedInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||